mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
Fix merge weirdness
This commit is contained in:
parent
eebe6e117e
commit
e26db14a29
1 changed files with 17 additions and 17 deletions
|
@ -917,23 +917,23 @@ class MockEppLib(TestCase):
|
||||||
def mockInfoContactCommands(self, _request, cleaned):
|
def mockInfoContactCommands(self, _request, cleaned):
|
||||||
mocked_result: info.InfoContactResultData
|
mocked_result: info.InfoContactResultData
|
||||||
|
|
||||||
# For testing contact types
|
# For testing contact types
|
||||||
match getattr(_request, "id", None):
|
match getattr(_request, "id", None):
|
||||||
case "securityContact":
|
case "securityContact":
|
||||||
mocked_result = self.mockSecurityContact
|
mocked_result = self.mockSecurityContact
|
||||||
case "technicalContact":
|
case "technicalContact":
|
||||||
mocked_result = self.mockTechnicalContact
|
mocked_result = self.mockTechnicalContact
|
||||||
case "adminContact":
|
case "adminContact":
|
||||||
mocked_result = self.mockAdministrativeContact
|
mocked_result = self.mockAdministrativeContact
|
||||||
case "regContact":
|
case "regContact":
|
||||||
mocked_result = self.mockRegistrantContact
|
mocked_result = self.mockRegistrantContact
|
||||||
case "defaultSec":
|
case "defaultSec":
|
||||||
mocked_result = self.mockDefaultSecurityContact
|
mocked_result = self.mockDefaultSecurityContact
|
||||||
case "defaultTech":
|
case "defaultTech":
|
||||||
mocked_result = self.mockDefaultTechnicalContact
|
mocked_result = self.mockDefaultTechnicalContact
|
||||||
case _:
|
case _:
|
||||||
# Default contact return
|
# Default contact return
|
||||||
mocked_result = self.mockDataInfoContact
|
mocked_result = self.mockDataInfoContact
|
||||||
|
|
||||||
return MagicMock(res_data=[mocked_result])
|
return MagicMock(res_data=[mocked_result])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue