mirror of https://github.com/zulip/zulip.git
tests: Test get_prereg_user_by_email().
This commit is contained in:
parent
ad149141f3
commit
69fa60080c
|
@ -8,7 +8,7 @@ from zilencer.models import Deployment
|
|||
|
||||
from zerver.views import get_invitee_emails_set, do_change_password
|
||||
from zerver.models import (
|
||||
get_realm, get_user_profile_by_email,
|
||||
get_realm, get_prereg_user_by_email, get_user_profile_by_email,
|
||||
PreregistrationUser, Realm, Recipient, ScheduledJob, UserProfile, UserMessage,
|
||||
)
|
||||
|
||||
|
@ -500,6 +500,9 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
|
|||
# We only sent emails to the new users.
|
||||
self.check_sent_emails(new)
|
||||
|
||||
prereg_user = get_prereg_user_by_email('foo-test@zulip.com')
|
||||
self.assertEqual(prereg_user.email, 'foo-test@zulip.com')
|
||||
|
||||
def test_invite_outside_domain_in_closed_realm(self):
|
||||
# type: () -> None
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue