mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 05:56:30 +02:00
Fix a commented out portion to fix tests hopefully
This commit is contained in:
parent
210d5293d6
commit
d072b143ea
2 changed files with 19 additions and 22 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue