test_signup: Fix sender check in test_wrong_subdomain_i18n.

We now potentially translate the sender of account security emails.
This commit is contained in:
Tim Abbott 2023-12-10 15:23:21 -08:00
parent a45438619d
commit 50b7c5ad85
1 changed files with 2 additions and 2 deletions

View File

@ -355,10 +355,10 @@ class PasswordResetTest(ZulipTestCase):
[message] = outbox
self.assertEqual(self.email_envelope_from(message), settings.NOREPLY_EMAIL_ADDRESS)
# The email might be sent in different languages for i18n testing
self.assertRegex(
self.email_display_from(message),
rf"^testserver account security <{self.TOKENIZED_NOREPLY_REGEX}>\Z",
# The email might be sent in different languages for i18n testing
rf"^testserver .* <{self.TOKENIZED_NOREPLY_REGEX}>\Z",
)
self.assertIn(f"{subdomain}.testserver", message.extra_headers["List-Id"])