From 1954d718cbd3d5b5c5dcb7e87db9a2ad550d639f Mon Sep 17 00:00:00 2001 From: skushagra Date: Wed, 24 Jan 2024 12:41:10 +0530 Subject: [PATCH] Fixed test to check for max length of email field in test_emailfield --- tests/forms_tests/field_tests/test_emailfield.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/forms_tests/field_tests/test_emailfield.py b/tests/forms_tests/field_tests/test_emailfield.py index cd33c28a14..70fa5a2f47 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -67,7 +67,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase): 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).'" + "'Ensure this value has at most 15 characters (it has 255).'" ): f.clean(email)