From bb567b4fb7b4b14a107c098743b7490999a99303 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 16 Oct 2023 17:09:45 +0200 Subject: [PATCH] also show the chatmail instance prominently in the test header --- online-tests/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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)