mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix and streamline a little
This commit is contained in:
@@ -125,10 +125,9 @@ def pytest_report_header(config, startdir):
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
cfg = config.option.liveconfig
|
chatmail_opt = config.getoption("--chatmail")
|
||||||
if cfg and "?" in cfg:
|
if chatmail_opt:
|
||||||
url, token = cfg.split("?", 1)
|
summary.append(f"Chatmail account provider: {chatmail_opt}")
|
||||||
summary.append(f"Liveconfig provider: {url}?<token omitted>")
|
|
||||||
|
|
||||||
return summary
|
return summary
|
||||||
|
|
||||||
@@ -164,7 +163,8 @@ class TestProcess:
|
|||||||
try:
|
try:
|
||||||
yield self._configlist[index]
|
yield self._configlist[index]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
username = "ci-" + "".join(random.choice("2345789acdefghjkmnpqrstuvwxyz") for i in range(6))
|
part = "".join(random.choices("2345789acdefghjkmnpqrstuvwxyz", k=6))
|
||||||
|
username = f"ci-{part}"
|
||||||
password = f"{username}${username}"
|
password = f"{username}${username}"
|
||||||
addr = f"{username}@{domain}"
|
addr = f"{username}@{domain}"
|
||||||
config = {"addr": addr, "mail_pw": password}
|
config = {"addr": addr, "mail_pw": password}
|
||||||
|
|||||||
Reference in New Issue
Block a user