facebook/TestSlide

Improve StrictMock & mock_callable exception messages

Open

#234 aperta il 1 set 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)Python (58 fork)auto 404
Better Error MessagesHacktoberfestenhancement

Metriche repository

Star
 (147 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor