mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Add ZulipTestCase.example_email and ZulipTestCase.mit_email function.
This commit is contained in:
@@ -234,6 +234,14 @@ class ZulipTestCase(TestCase):
|
||||
email = self.mit_user_map[name]
|
||||
return get_user_profile_by_email(email)
|
||||
|
||||
def example_email(self, name):
|
||||
# type: (str) -> str
|
||||
return self.example_user_map[name]
|
||||
|
||||
def mit_email(self, name):
|
||||
# type: (str) -> str
|
||||
return self.mit_user_map[name]
|
||||
|
||||
def notification_bot(self):
|
||||
# type: () -> UserProfile
|
||||
return get_user_profile_by_email('notification-bot@zulip.com')
|
||||
|
||||
Reference in New Issue
Block a user