From bd066fe0f139f64fd5236af27a807900694802e2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 2 Oct 2017 15:31:35 -0700 Subject: [PATCH] test_subdomain_restrictions: Update to assume subdomains. --- zerver/tests/test_signup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index 06b4b1e609..40935f66c8 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -1175,6 +1175,7 @@ class RealmCreationTest(ZulipTestCase): result = self.client_post('/create_realm/', {'email': "hi@mailinator.com"}) self.assert_in_response('Please use your real email address.', result) + @override_settings(REALMS_HAVE_SUBDOMAINS=True) @override_settings(OPEN_REALM_CREATION=True) def test_subdomain_restrictions(self): # type: () -> None @@ -1187,7 +1188,7 @@ class RealmCreationTest(ZulipTestCase): confirmation_url = self.get_confirmation_url_from_outbox(email) self.client_get(confirmation_url) - errors = {'id': "at least 3 characters", + errors = {'id': "length 3 or greater", '-id': "cannot start or end with a", 'string-ID': "lowercase letters", 'string_id': "lowercase letters",