facebook / facebook/TestSlide

Improve mock(_async)_callable & mock_constructor exceptions.

Offen
#189 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Better Error Messages easy enhancement mock_constructor mock(_async)_callable
Vorherrschende Sprache
Python
Sterne
149
Forks
62
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

With #184 adding caller_frame_info to mock instances, we can now improve all exceptions that are raised by these mocks, ta all contain information regarding the file:lineno where the mock was defined.

This is a frequently asked feature by uses, which should simplify development significantly.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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