mirror of https://github.com/zulip/zulip.git
populate_db: Create an email-reusing Cordelia in the "lear" realm.
This commit is contained in:
parent
586e18b237
commit
50e451cd7b
|
@ -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/',
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue