This commit is contained in:
Joakim Hellsén 2026-04-27 20:43:26 +02:00
commit a7a5b5c8ea
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
43 changed files with 5531 additions and 9 deletions

View file

@ -1,3 +1,4 @@
import os
from typing import TYPE_CHECKING
from typing import Any
@ -13,3 +14,17 @@ def use_zeal() -> Generator[None, Any]:
"""Enable Zeal N+1 detection context for each pytest test."""
with zeal.zeal_context():
yield
def pytest_configure(config: pytest.Config) -> None:
"""Register local markers used by opt-in host smoke coverage."""
config.addinivalue_line(
"markers",
"host_smoke: opt-in host-level smoke tests that spawn real local processes",
)
@pytest.fixture
def host_smoke_enabled() -> bool:
"""Return whether opt-in host smoke coverage should run."""
return os.getenv("TUSSILAGO_RUN_HOST_SMOKE", "0") == "1"