reformatted for readability (and to satisfy the linter)

This commit is contained in:
David Kennedy 2024-03-21 15:20:07 -04:00
parent 100e3cf300
commit 6f4febde43
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -668,7 +668,9 @@ class TestDomainManagers(TestDomainOverview):
def test_domain_invitation_cancel_retrieved_invitation(self):
"""Posting to the delete view when invitation retrieved returns an error message"""
email_address = "mayor@igorville.gov"
invitation, _ = DomainInvitation.objects.get_or_create(domain=self.domain, email=email_address, status=DomainInvitation.DomainInvitationStatus.RETRIEVED)
invitation, _ = DomainInvitation.objects.get_or_create(
domain=self.domain, email=email_address, status=DomainInvitation.DomainInvitationStatus.RETRIEVED
)
with less_console_noise():
response = self.client.post(reverse("invitation-delete", kwargs={"pk": invitation.id}), follow=True)
# Assert that an error message is displayed to the user
@ -678,7 +680,7 @@ class TestDomainManagers(TestDomainOverview):
# Assert that the DomainInvitation is not deleted
self.assertTrue(DomainInvitation.objects.filter(id=invitation.id).exists())
DomainInvitation.objects.filter(email=email_address).delete()
def test_domain_invitation_cancel_no_permissions(self):
"""Posting to the delete view as a different user should fail."""
email_address = "mayor@igorville.gov"