mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Optimized test for RFC5321
Co-Authored-By: Christophe CHAUVET <christophe.chauvet@gmail.com>
This commit is contained in:
co-authored by
Christophe CHAUVET
parent
2f632dc6d7
commit
4ec0a25ab5
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user