mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
test_helpers.py: Fix default args for submit_reg_form_for_user.
Previously realm_name and realm_subdomain defalted to None, which when posted to /accounts/register, are submitted as u'None'. "None" is an invalid Realm.subdomain, since subdomains can't have capital letters.
This commit is contained in:
@@ -390,7 +390,7 @@ class ZulipTestCase(TestCase):
|
||||
return self.submit_reg_form_for_user(username, password, domain=domain)
|
||||
|
||||
def submit_reg_form_for_user(self, username, password, domain="zulip.com",
|
||||
realm_name=None, realm_subdomain=None,
|
||||
realm_name="Zulip Test", realm_subdomain="zuliptest",
|
||||
realm_org_type=Realm.COMMUNITY,
|
||||
from_confirmation='', **kwargs):
|
||||
# type: (text_type, text_type, text_type, Optional[text_type], Optional[text_type], int, Optional[text_type], **Any) -> HttpResponse
|
||||
|
||||
Reference in New Issue
Block a user