populate_db: Create an email-reusing Cordelia in the "lear" realm.

This commit is contained in:
Greg Price 2017-11-27 18:29:56 -08:00
parent 586e18b237
commit 50e451cd7b
2 changed files with 3 additions and 1 deletions

View File

@ -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/',

View File

@ -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)