mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
formatted tests for linter
This commit is contained in:
parent
08efc6629e
commit
cc1a8fd44a
1 changed files with 3 additions and 3 deletions
|
@ -191,10 +191,10 @@ class TestDomainInvitationAdmin(TestCase):
|
|||
@less_console_noise_decorator
|
||||
def test_save_model_user_exists(self):
|
||||
"""Test saving a domain invitation when the user exists.
|
||||
|
||||
|
||||
Should attempt to retrieve the domain invitation."""
|
||||
# Create a user with the same email
|
||||
User.objects.create_user(email="test@example.com", password="password", username="username")
|
||||
User.objects.create_user(email="test@example.com", username="username")
|
||||
|
||||
# Create a domain invitation instance
|
||||
invitation = DomainInvitation(email="test@example.com", domain=self.domain)
|
||||
|
@ -219,7 +219,7 @@ class TestDomainInvitationAdmin(TestCase):
|
|||
@less_console_noise_decorator
|
||||
def test_save_model_user_does_not_exist(self):
|
||||
"""Test saving a domain invitation when the user does not exist.
|
||||
|
||||
|
||||
Should not attempt to retrieve the domain invitation."""
|
||||
# Create a domain invitation instance
|
||||
invitation = DomainInvitation(email="nonexistent@example.com", domain=self.domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue