test_decorator: Add explicit subdomains in tests.

This commit is contained in:
Tim Abbott
2017-08-28 22:40:56 -07:00
parent a8b9ffc020
commit 4a22316d90
3 changed files with 16 additions and 15 deletions

View File

@@ -273,12 +273,13 @@ class ZulipTestCase(TestCase):
# type: () -> UserProfile
return get_user('notification-bot@zulip.com', get_realm('zulip'))
def login_with_return(self, email, password=None):
# type: (Text, Optional[Text]) -> HttpResponse
def login_with_return(self, email, password=None, **kwargs):
# type: (Text, Optional[Text], **Any) -> HttpResponse
if password is None:
password = initial_password(email)
return self.client_post('/accounts/login/',
{'username': email, 'password': password})
{'username': email, 'password': password},
**kwargs)
def login(self, email, password=None, fails=False):
# type: (Text, Optional[Text], bool) -> HttpResponse