mirror of https://github.com/zulip/zulip.git
Add ZulipTestCase.example_email and ZulipTestCase.mit_email function.
This commit is contained in:
parent
075b0cae70
commit
f5d8e256aa
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue