mirror of https://github.com/zulip/zulip.git
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:
parent
a45438619d
commit
50b7c5ad85
|
@ -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"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue