add decorator

This commit is contained in:
zandercymatics 2024-07-16 12:44:04 -06:00
parent 35c8a57aa3
commit f0f8bbf26a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -2288,9 +2288,8 @@ class TestDomainRequestAdmin(MockEppLib):
self.assertContains(response, "When a domain request is in ineligible status") self.assertContains(response, "When a domain request is in ineligible status")
self.assertContains(response, "Yes, select ineligible status") self.assertContains(response, "Yes, select ineligible status")
@less_console_noise_decorator
def test_readonly_when_restricted_creator(self): def test_readonly_when_restricted_creator(self):
self.maxDiff = None
with less_console_noise():
domain_request = completed_domain_request(status=DomainRequest.DomainRequestStatus.IN_REVIEW) domain_request = completed_domain_request(status=DomainRequest.DomainRequestStatus.IN_REVIEW)
with boto3_mocking.clients.handler_for("sesv2", self.mock_client): with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
domain_request.creator.status = User.RESTRICTED domain_request.creator.status = User.RESTRICTED