Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock_callable(): Fail on the spot when an extra call is made #3

Closed
fornellas opened this issue Oct 3, 2018 · 0 comments · Fixed by #18
Closed

mock_callable(): Fail on the spot when an extra call is made #3

fornellas opened this issue Oct 3, 2018 · 0 comments · Fixed by #18
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@fornellas
Copy link
Contributor

When we use:

and_assert_called_exactly()
and_assert_called_once()
and_assert_called_twice()
and_assert_called_at_most()
and_assert_not_called()

We want that when an extra call is made, that it fails right on, as opposed to currently, that it only fails the after assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant