mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
PR Changes
This commit is contained in:
parent
a84bbb5d3a
commit
1990f91e6a
5 changed files with 185 additions and 131 deletions
|
@ -683,9 +683,9 @@ class MockEppLib(TestCase):
|
|||
else:
|
||||
return MagicMock(res_data=[self.mockDataInfoDomain])
|
||||
elif isinstance(_request, commands.InfoContact):
|
||||
# Default contact return
|
||||
mocked_result = self.mockDataInfoContact
|
||||
# For testing contact types...
|
||||
mocked_result: info.InfoContactResultData
|
||||
|
||||
# For testing contact types
|
||||
match getattr(_request, "id", None):
|
||||
case "securityContact":
|
||||
mocked_result = self.mockSecurityContact
|
||||
|
@ -695,7 +695,8 @@ class MockEppLib(TestCase):
|
|||
mocked_result = self.mockAdministrativeContact
|
||||
case "regContact":
|
||||
mocked_result = self.mockRegistrantContact
|
||||
case "123":
|
||||
case _:
|
||||
# Default contact return
|
||||
mocked_result = self.mockDataInfoContact
|
||||
|
||||
return MagicMock(res_data=[mocked_result])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue