forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ZulipTestCase.mit_user() function.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,11 +218,22 @@ def client_get(self, url, info={}, **kwargs): | |
ZOE='[email protected]', | ||
) | ||
|
||
mit_user_map = dict( | ||
sipbtest="[email protected]", | ||
starnine="[email protected]", | ||
espuser="[email protected]", | ||
) | ||
|
||
def example_user(self, name): | ||
# type: (str) -> UserProfile | ||
email = self.example_user_map[name] | ||
return get_user_profile_by_email(email) | ||
|
||
def mit_user(self, name): | ||
# type: (str) -> UserProfile | ||
email = self.mit_user_map[name] | ||
return get_user_profile_by_email(email) | ||
|
||
def notification_bot(self): | ||
# type: () -> UserProfile | ||
return get_user_profile_by_email('[email protected]') | ||
|