Optimized test for RFC5321

Co-Authored-By: Christophe CHAUVET <christophe.chauvet@gmail.com>
This commit is contained in:
Spitfireap
2024-07-27 12:20:12 +02:00
co-authored by Christophe CHAUVET
parent 2f632dc6d7
commit 4ec0a25ab5
+1 -1
View File
@@ -211,7 +211,7 @@ class AccountViewSetTestCase(ModoAPITestCase):
def test_create_too_long_username(self):
"""Test that it is not possible to create too long usernames (RFC5321)."""
url = reverse("v2:account-list")
toolong_username = "".join(["a" for i in range(66)])
toolong_username = "a" * 66
data = {
"username": f"{toolong_username}@test.com",
"role": "SimpleUsers",