Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_signup: Refactor test_signup_without_full_name to use verify_signup.
Gilbert Bishop-White28932ba8eeff
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex 8b138acbf2b..407f0252f2e 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -3793,27 +3793,7 @@ class UserSignUpTest(InviteUserBase):"""email = "[email protected]"password = "newpassword"-- result = self.client_post("/accounts/home/", {"email": email})- self.assertEqual(result.status_code, 302)- self.assertTrue(result["Location"].endswith(f"/accounts/send_confirm/{email}"))- result = self.client_get(result["Location"])- self.assert_in_response("Check your email so we can get started.", result)-- # Visit the confirmation link.- confirmation_url = self.get_confirmation_url_from_outbox(email)- result = self.client_get(confirmation_url)- self.assertEqual(result.status_code, 200)-- result = self.client_post(- "/accounts/register/",- {- "password": password,- "key": find_key_by_email(email),- "terms": True,- "from_confirmation": "1",- },- )+ result = self.verify_signup(email=email, password=password, full_name="")self.assert_in_success_response(["We just need you to do one last thing."], result)# Verify that the user is asked for name and password