diff --git a/tests/unit/email/test_services.py b/tests/unit/email/test_services.py index cf36e180727a..5619e4141f57 100644 --- a/tests/unit/email/test_services.py +++ b/tests/unit/email/test_services.py @@ -347,7 +347,7 @@ def test_last_sent(self, db_session): for address in [to, "somebody_else@example.com"]: for subject in [subject, "I do not care about this"]: sender.send( - f"Foobar <{ to }>", + f"Foobar <{ address }>", EmailMessage( subject=subject, body_text="This is a plain text body" ),