mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 04:18:09 +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")
|
pytest.skip("set CHATMAIL_DOMAIN to a ssh-reachable chatmail instance")
|
||||||
return domain
|
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
|
@pytest.fixture
|
||||||
def imap(maildomain):
|
def imap(maildomain):
|
||||||
return ImapConn(maildomain)
|
return ImapConn(maildomain)
|
||||||
|
|||||||
Reference in New Issue
Block a user