facebook / facebook/TestSlide

Improve mock(_async)_callable & mock_constructor exceptions.

Open
#189 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.