clean up print statements

This commit is contained in:
Rachid Mrad 2023-09-19 17:48:21 -04:00
parent 021f71f2f5
commit ca6fa62ca4
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
3 changed files with 1 additions and 7 deletions

View file

@ -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"]]

View file

@ -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()

View file

@ -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)