From 4063e03670fe628b4e348ac4434275f5436f7b4f Mon Sep 17 00:00:00 2001 From: skushagra Date: Wed, 24 Jan 2024 11:36:10 +0530 Subject: [PATCH] Added tests for validataing email length of 254 characters --- tests/validators/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 9e1187dc89..adf2171926 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -324,7 +324,7 @@ TEST_DATA = [ (validate_email, "a@%s.us" % ("a" * 63), None), (validate_email, "a@%s.us" % ("a" * 64), ValidationError), # validation error if max length of email exceeds 254 chracters. - (validate_email, "%s@example.com" % ("a" * 50), None), + (validate_email, "%s@example.com" % ("a" * 50), None), (validate_email, "%s@example.com" % ("a" * 250), ValidationError), # Trailing newlines in username or domain not allowed (validate_email, "a@b.com\n", ValidationError),