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