diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index 579557acff..983bd9afd7 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -2288,7 +2288,8 @@ class TestFindMyTeam(ZulipTestCase): self.assertIn(self.example_email("iago"), content) self.assertIn(self.example_email("cordelia"), content) from django.core.mail import outbox - self.assertEqual(len(outbox), 2) + # 3 = 1 + 2 -- Cordelia gets an email each for the "zulip" and "lear" realms. + self.assertEqual(len(outbox), 3) def test_find_team_ignore_invalid_email(self) -> None: result = self.client_post('/accounts/find/', diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py index e33de3e4a7..4e17e140f7 100644 --- a/zilencer/management/commands/populate_db.py +++ b/zilencer/management/commands/populate_db.py @@ -313,6 +313,7 @@ class Command(BaseCommand): testsuite_lear_users = [ ("King Lear", "king@lear.org"), + ("Cordelia Lear", "cordelia@zulip.com"), ] create_users(lear_realm, testsuite_lear_users)