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

Fix CallList assertion error message #178

Merged
merged 1 commit into from Nov 8, 2021
Merged

Conversation

lundberg
Copy link
Owner

@lundberg lundberg commented Nov 4, 2021

When respx.calls.assert_called_once() (and friends) fails the assertion check, the python built-in error message crashes when being formatted.

This PR fixes this, but also enhances the output of these assertion messages, e.g. what route failed.

Copy link
Contributor

@flaeppe flaeppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lundberg lundberg merged commit 97eb9ae into master Nov 8, 2021
@lundberg lundberg deleted the fix-assert-calls-msg branch November 8, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants