Add missing fixture (#8207)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
mefmund 2020-12-31 19:25:44 +01:00 committed by GitHub
parent 48c9a96a03
commit 5f11a35b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -879,9 +879,9 @@ Here's what that might look like:
admin_client.delete_user(user)
def test_email_received(receiving_user, email):
def test_email_received(sending_user, receiving_user, email):
email = Email(subject="Hey!", body="How's it going?")
sending_user.send_email(_email, receiving_user)
sending_user.send_email(email, receiving_user)
assert email in receiving_user.inbox
Because ``receiving_user`` is the last fixture to run during setup, it's the first to run