facebook/TestSlide

Improve StrictMock & mock_callable exception messages

Open

#234 geöffnet am 1. Sept. 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (58 Forks)auto 404
Better Error MessagesHacktoberfestenhancement

Repository-Metriken

Stars
 (147 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide