mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
also show the chatmail instance prominently in the test header
This commit is contained in:
@@ -28,6 +28,14 @@ def maildomain():
|
||||
pytest.skip("set CHATMAIL_DOMAIN to a ssh-reachable chatmail instance")
|
||||
return domain
|
||||
|
||||
|
||||
def pytest_report_header():
|
||||
domain = os.environ.get("CHATMAIL_DOMAIN")
|
||||
if domain:
|
||||
text = f"chatmail test instance: {domain}"
|
||||
return ["-" * len(text), text, "-" * len(text)]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def imap(maildomain):
|
||||
return ImapConn(maildomain)
|
||||
|
||||
Reference in New Issue
Block a user