mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 11:38:39 +02:00
clean up print statements
This commit is contained in:
parent
021f71f2f5
commit
ca6fa62ca4
3 changed files with 1 additions and 7 deletions
|
@ -954,7 +954,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
# remove null properties (to distinguish between "a value of None" and null)
|
||||
cleaned = {k: v for k, v in cache.items() if v is not ...}
|
||||
print(f"cleaned {cleaned}")
|
||||
|
||||
# statuses can just be a list no need to keep the epp object
|
||||
if "statuses" in cleaned.keys():
|
||||
cleaned["statuses"] = [status.state for status in cleaned["statuses"]]
|
||||
|
|
|
@ -607,7 +607,6 @@ class MockEppLib(TestCase):
|
|||
|
||||
def setUp(self):
|
||||
"""mock epp send function as this will fail locally"""
|
||||
print("Set up EPP MOCK")
|
||||
self.mockSendPatch = patch("registrar.models.domain.registry.send")
|
||||
self.mockedSendFunction = self.mockSendPatch.start()
|
||||
self.mockedSendFunction.side_effect = self.mockSend
|
||||
|
@ -671,5 +670,4 @@ class MockEppLib(TestCase):
|
|||
)
|
||||
|
||||
def tearDown(self):
|
||||
print("tear down EPP MOCK")
|
||||
self.mockSendPatch.stop()
|
||||
|
|
|
@ -180,10 +180,6 @@ class TestDomainStatuses(MockEppLib):
|
|||
domain, _ = Domain.objects.get_or_create(name="chicken-liver.gov")
|
||||
# trigger getter
|
||||
_ = domain.statuses
|
||||
print("checkpoint 1")
|
||||
print(domain._cache["statuses"])
|
||||
print(domain._cache)
|
||||
|
||||
status_list = [status.state for status in self.mockDataInfoDomain.statuses]
|
||||
self.assertEquals(domain._cache["statuses"], status_list)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue