diff --git a/online-tests/conftest.py b/online-tests/conftest.py index 00f1f747..907bd17a 100644 --- a/online-tests/conftest.py +++ b/online-tests/conftest.py @@ -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)