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:
Rishi Gupta
2016-10-31 22:11:56 -07:00
committed by Tim Abbott
parent 950831810b
commit e3646f28bd

View File

@@ -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