From 5f11a35b99e3606b003f695b908496c363796074 Mon Sep 17 00:00:00 2001 From: mefmund Date: Thu, 31 Dec 2020 19:25:44 +0100 Subject: [PATCH] Add missing fixture (#8207) Co-authored-by: Florian Bruhin Co-authored-by: Bruno Oliveira --- doc/en/fixture.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index 752385adc..a629bb7d4 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -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