facebook / facebook/TestSlide

Improve StrictMock & mock_callable exception messages

Đang mở
#234 0 bình luận 0 reaction 1 người được giao Được @fornellas nhận Xem trên GitHub
Better Error Messages enhancement Hacktoberfest
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ả

Currently we raise things like `UnexpectedCallArguments` telling about "behavior". This confuses a lot of users constantly.

@karlodwyer suggested doing things like:

- UnexpectedCallArguments > UnmatchedCallReceived
- explain there's no configured mocks to answer this call
- explain which calls the mock is configured to accept.

Le's apply this "make it clearer mindset" to all existing StrictMock & mock_callable exceptions.

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.