mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 02:36:02 +02:00
Update test_models.py
This commit is contained in:
parent
ab2dffa9d5
commit
928e99cbbc
1 changed files with 3 additions and 2 deletions
|
@ -734,7 +734,7 @@ class TestContact(TestCase):
|
|||
self.assertEqual(self.user.last_name, "Lebowski")
|
||||
|
||||
def test_saving_contact_does_not_update_user_email(self):
|
||||
"""When a contact's email is updated, the change is not propagated to the lined user."""
|
||||
"""When a contact's email is updated, the change is not propagated to the user."""
|
||||
self.contact.email = "joey.baloney@diaperville.com"
|
||||
self.contact.save()
|
||||
|
||||
|
@ -746,7 +746,8 @@ class TestContact(TestCase):
|
|||
self.assertEqual(self.user.email, "mayor@igorville.gov")
|
||||
|
||||
def test_saving_contact_does_not_update_user_email_when_none(self):
|
||||
"""When a contact's email is updated, the change is not propagated to the lined user."""
|
||||
"""When a contact's email is updated, and the first/last name is none,
|
||||
the change is not propagated to the user."""
|
||||
self.invalid_contact.email = "joey.baloney@diaperville.com"
|
||||
self.invalid_contact.save()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue