Skip to content

Improve StrictMock & mock_callable exception messages #234

@fornellas

Description

@fornellas

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions