mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +00:00
tests: ensure len(username) = 9 if CHATMAIL_DOMAIN2==nine.testrun.org
This commit is contained in:
@@ -240,7 +240,10 @@ def gencreds(chatmail_config):
|
|||||||
user = "".join(
|
user = "".join(
|
||||||
random.choices(alphanumeric, k=chatmail_config.username_max_length)
|
random.choices(alphanumeric, k=chatmail_config.username_max_length)
|
||||||
)
|
)
|
||||||
user = f"ac{num}_{user}"[: chatmail_config.username_max_length]
|
if domain == "nine.testrun.org":
|
||||||
|
user = f"ac{num}_{user}"[:9]
|
||||||
|
else:
|
||||||
|
user = f"ac{num}_{user}"[: chatmail_config.username_max_length]
|
||||||
password = "".join(
|
password = "".join(
|
||||||
random.choices(alphanumeric, k=chatmail_config.password_min_length)
|
random.choices(alphanumeric, k=chatmail_config.password_min_length)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user