Improve mock(_async)_callable & mock_constructor exceptions.
Open
Better Error Messages
easy
enhancement
mock_constructor
mock(_async)_callable
- Dominant language
- Python
- Stars
- 149
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.