From b4f16ffc5f22c579aeda2ce4cc9eac9c3d83539f Mon Sep 17 00:00:00 2001 From: skushagra Date: Wed, 24 Jan 2024 12:55:07 +0530 Subject: [PATCH] Fixed test with correct length of the long_email (fixed whitespace) --- 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 716e7c8da9..a0c8d5be1b 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -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).'"