Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_signup: Fix sender check in test_wrong_subdomain_i18n.

Tim Abbott50b7c5ad857c
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index e4a600bb6e9..95733c6ebc0 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -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"])