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

Fixed test to check for max length of email field in test_emailfield

This commit is contained in:
skushagra 2024-01-24 12:41:10 +05:30
parent 6855de7f8b
commit 1954d718cb

View File

@ -67,7 +67,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
email = 'a' * 245 + '@example.com' # This email has 255 characters email = 'a' * 245 + '@example.com' # This email has 255 characters
with self.assertRaisesMessage( with self.assertRaisesMessage(
ValidationError, ValidationError,
"'Ensure this value has at most 254 characters (it has 255).'" "'Ensure this value has at most 15 characters (it has 255).'"
): ):
f.clean(email) f.clean(email)