WIP
This commit is contained in:
parent
e70a0584c9
commit
a7a5b5c8ea
43 changed files with 5531 additions and 9 deletions
15
conftest.py
15
conftest.py
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue