Improve mock(_async)_callable & mock_constructor exceptions.
Offen
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
Bewertung
Dieses Issue wurde noch nicht bewertet.