Skip to content

Make sure mail.outbox == foo and mail.outbox != bar raises exceptions. #427

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

Merged
merged 4 commits into from
Nov 21, 2016

Conversation

pelme
Copy link
Member

@pelme pelme commented Nov 21, 2016

Refs #410.

@peterlauri please have a look!

@pelme
Copy link
Member Author

pelme commented Nov 21, 2016

I use assert mail.outbox == [] and it was not picked up by the error message, this should fix it. :)

@peterlauri
Copy link
Contributor

Looks good...

@pelme pelme merged commit 5455dca into pytest-dev:master Nov 21, 2016
mfa pushed a commit to aexeagmbh/pytest-django that referenced this pull request May 17, 2017
Make sure `mail.outbox == foo`, `mail.outbox != bar` and `iter(mail.outbox)` raises exceptions.

This commit also improves the readability of the provided assertion message by hiding the internal traceback and showing the documentation link.
timb07 pushed a commit to timb07/pytest-django that referenced this pull request May 26, 2018
Make sure `mail.outbox == foo`, `mail.outbox != bar` and `iter(mail.outbox)` raises exceptions.

This commit also improves the readability of the provided assertion message by hiding the internal traceback and showing the documentation link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants