1
0
mirror of https://github.com/django/django.git synced 2025-06-08 13:09:13 +00:00

Fixed test with correct length of the long_email (fixed whitespace)

This commit is contained in:
skushagra 2024-01-24 12:55:07 +05:30
parent 6dc451195e
commit b4f16ffc5f

View File

@ -64,7 +64,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
"'Ensure this value has at most 15 characters (it has 20).'",
):
f.clean("alf123456788@foo.com")
long_email = 'a' * 245 + '@example.com'
long_email = 'a' * 245 + '@example.com'
with self.assertRaisesMessage(
ValidationError,
"'Ensure this value has at most 15 characters (it has 257).'"