facebook / facebook/TestSlide

Improve StrictMock & mock_callable exception messages

Offen
#234 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @fornellas Auf GitHub ansehen
Better Error Messages enhancement Hacktoberfest
Vorherrschende Sprache
Python
Sterne
149
Forks
62
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently we raise things like `UnexpectedCallArguments` telling about "behavior". This confuses a lot of users constantly.

@karlodwyer suggested doing things like:

- UnexpectedCallArguments > UnmatchedCallReceived
- explain there's no configured mocks to answer this call
- explain which calls the mock is configured to accept.

Le's apply this "make it clearer mindset" to all existing StrictMock & mock_callable exceptions.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.