mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Remove extraneous print statements and rename extendedValues to threeNS
This commit is contained in:
parent
5fcae0cb80
commit
fbad2abd9d
3 changed files with 9 additions and 10 deletions
|
@ -644,14 +644,15 @@ class MockEppLib(TestCase):
|
|||
],
|
||||
)
|
||||
|
||||
# TODO-848: Fix naming
|
||||
extendedValues = False
|
||||
# Bc we have multiple tests utilizing 3 nameservers,
|
||||
# easier to set a flag for it
|
||||
threeNS = False
|
||||
|
||||
def _getattrInfoDomain(self, _request):
|
||||
if getattr(_request, "name", None) == "security.gov":
|
||||
return MagicMock(res_data=[self.infoDomainNoContact])
|
||||
elif getattr(_request, "name", None) == "my-nameserver.gov":
|
||||
if self.extendedValues:
|
||||
if self.threeNS:
|
||||
return MagicMock(res_data=[self.infoDomainThreeHosts])
|
||||
elif self.mockedSendFunction.call_count == 5:
|
||||
return MagicMock(res_data=[self.infoDomainTwoHosts])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue