Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_signup: Fix test making DNS query to public Internet.
Tim Abbott4e8a5f4da857
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.pyindex 4c37066ce7b..ae6b69542ac 100644--- a/zerver/tests/test_signup.py+++ b/zerver/tests/test_signup.py@@ -4607,7 +4607,11 @@ class UserSignUpTest(InviteUserBase):self.assertEqual(result.status_code, 302)self.assert_logged_in_user_id(user_profile.id)- def test_registration_of_active_mirror_dummy_user(self) -> None:+ @patch(+ "DNS.dnslookup",+ return_value=[["sipbtest:*:20922:101:Fred Sipb,,,:/mit/sipbtest:/bin/athena/tcsh"]],+ )+ def test_registration_of_active_mirror_dummy_user(self, ignored: Any) -> None:"""Trying to activate an already-active mirror dummy user shouldraise an AssertionError.