facebook / facebook/TestSlide

Improve mock(_async)_callable & mock_constructor exceptions.

Đang mở
#189 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Better Error Messages easy enhancement mock_constructor mock(_async)_callable
Ngôn ngữ chính
Python
Star
149
Fork
62
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.