Fix a commented out portion to fix tests hopefully

This commit is contained in:
Rebecca Hsieh 2025-03-24 17:49:04 -07:00
parent 210d5293d6
commit d072b143ea
No known key found for this signature in database
2 changed files with 19 additions and 22 deletions

View file

@ -2271,7 +2271,7 @@ class TestDomainRequestAdmin(MockEppLib):
def test_error_when_approving_domain_in_pending_delete_state(self):
"""If in pendingDelete state from in review -> approve not allowed."""
# 1. Create domain
# 1. Create domain
to_be_in_pending_deleted = completed_domain_request(
status=DomainRequest.DomainRequestStatus.SUBMITTED, name="meoward1.gov"
)
@ -2282,9 +2282,7 @@ class TestDomainRequestAdmin(MockEppLib):
to_be_in_pending_deleted.save()
# 3. Update request as a superuser
request = self.factory.post(
f"/admin/registrar/domainrequest/{to_be_in_pending_deleted.pk}/change/"
)
request = self.factory.post(f"/admin/registrar/domainrequest/{to_be_in_pending_deleted.pk}/change/")
request.user = self.superuser
request.session = {}
@ -2308,7 +2306,6 @@ class TestDomainRequestAdmin(MockEppLib):
"Domain of same name is currently in pending delete state.",
)
@less_console_noise
def test_no_error_when_saving_to_approved_and_domain_exists(self):
"""The negative of the redundant admin check on model transition not allowed."""