mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
test_classes: Stop using get_realm_by_email_domain.
get_realm_by_email_domain was intended to be registration flow code not used in other code, but it was leaked to a few places. This removes one of the main remaining references to it outside the registration code path.
This commit is contained in:
@@ -37,7 +37,6 @@ from zerver.models import (
|
||||
get_user,
|
||||
get_user_profile_by_email,
|
||||
get_realm,
|
||||
get_realm_by_email_domain,
|
||||
Client,
|
||||
Message,
|
||||
Realm,
|
||||
@@ -227,7 +226,7 @@ class ZulipTestCase(TestCase):
|
||||
def nonreg_user(self, name):
|
||||
# type: (str) -> UserProfile
|
||||
email = self.nonreg_user_map[name]
|
||||
return get_user(email, get_realm_by_email_domain(email))
|
||||
return get_user(email, get_realm("zulip"))
|
||||
|
||||
def example_user(self, name):
|
||||
# type: (str) -> UserProfile
|
||||
|
||||
Reference in New Issue
Block a user