mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +02:00
fix linting errors
This commit is contained in:
parent
4623a5dfb2
commit
d31a5aa512
2 changed files with 2 additions and 40 deletions
|
@ -281,17 +281,10 @@ class TestFormValidation(TestCase):
|
|||
|
||||
|
||||
class TestContactForm(TestCase):
|
||||
|
||||
def test_contact_form_email_invalid(self):
|
||||
form = ContactForm(data={"email": "example.net"})
|
||||
self.assertEqual(
|
||||
form.errors["email"],
|
||||
["Enter a valid email address."]
|
||||
)
|
||||
self.assertEqual(form.errors["email"], ["Enter a valid email address."])
|
||||
|
||||
def test_contact_form_email_invalid2(self):
|
||||
form = ContactForm(data={"email": "@"})
|
||||
self.assertEqual(
|
||||
form.errors["email"],
|
||||
["Enter a valid email address."]
|
||||
)
|
||||
self.assertEqual(form.errors["email"], ["Enter a valid email address."])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue