mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
test_decorator: Add explicit subdomains in tests.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user