1
0
mirror of https://github.com/django/django.git synced 2025-04-09 07:56:43 +00:00

Fixed line length too long in test_emailfied

This commit is contained in:
skushagra 2024-01-24 12:15:39 +05:30
parent f023a3bec1
commit 8b6ea840bc

View File

@ -65,7 +65,9 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
):
f.clean("alf123456788@foo.com")
email = 'a' * 245 + '@example.com' # This email has 255 characters
with self.assertRaisesMessage(ValidationError, "'Ensure this value has at most 254 characters (it has 255).'"):
with self.assertRaisesMessage(
ValidationError, "'Ensure this value has at most 254 characters (it has 255).'"
):
f.clean(email)
def test_emailfield_strip_on_none_value(self):
f = EmailField(required=False, empty_value=None)