facebook/TestSlide

Improve StrictMock & mock_callable exception messages

Open

#234 opened on 2020年9月1日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)Python (58 forks)auto 404
Better Error MessagesHacktoberfestenhancement

Repository metrics

Stars
 (147 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド