test_signup: Fix test making DNS query to public Internet.

This appears to be the result of our having copied parts of the
previous test without copying its DNS query decorator.
This commit is contained in:
Tim Abbott 2021-04-13 10:47:35 -07:00
parent ec8ffb8c80
commit 4e8a5f4da8
1 changed files with 5 additions and 1 deletions

View File

@ -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 should
raise an AssertionError.