From ca6fa62ca43760cc96bcf628e9bef9485df22a3a Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Tue, 19 Sep 2023 17:48:21 -0400 Subject: [PATCH] clean up print statements --- src/registrar/models/domain.py | 2 +- src/registrar/tests/common.py | 2 -- src/registrar/tests/test_models_domain.py | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index 440bed0aa..d7b012282 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -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"]] diff --git a/src/registrar/tests/common.py b/src/registrar/tests/common.py index 5258a88f3..66d9c2db1 100644 --- a/src/registrar/tests/common.py +++ b/src/registrar/tests/common.py @@ -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() diff --git a/src/registrar/tests/test_models_domain.py b/src/registrar/tests/test_models_domain.py index f0c01d239..0bed3845b 100644 --- a/src/registrar/tests/test_models_domain.py +++ b/src/registrar/tests/test_models_domain.py @@ -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)