From 99ade3f535b5461bb7a0ddaaa08289d507324af6 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Mon, 13 Sep 2021 15:48:33 +0200 Subject: [PATCH] test_signup: Fix asserted redirect Location in verify_signup. The expected Location should depend on the realm. --- zerver/tests/test_signup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index 02f5235c8a..00086cfe3e 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -3625,7 +3625,7 @@ class UserSignUpTest(InviteUserBase): # Verify that we were served a redirect to the app. self.assertEqual(result.status_code, 302) - self.assertEqual(result["Location"], "http://lear.testserver/") + self.assertEqual(result["Location"], f"{realm.uri}/") # Verify that we successfully logged in. user_profile = get_user(email, realm)