test(harness): L2 marker + skip-when-no-.env guard (D3, Testing Strategy)

conftest loads harness/.env once (session, autouse) via python-dotenv, and exposes
an l2_env fixture that SKIPS (not fails) when any L2 prerequisite var is missing/
empty: THOTH_DWH_API_KEY, THOTH_VEC_API_KEY, THOTH_VEC_WRITE_API_KEY, THOTH_SSL_CA.
So the default run (pytest = L0+L1, addopts '-m not l2') stays green without .env;
only pytest -m l2 (pre-release, with .env + VPN) exercises them. l0/l2 markers were
registered in A9. tests/l2/ package created for the L2 tests (D4, D5).
This commit is contained in:
2026-06-26 23:16:40 +02:00
parent d747f89d12
commit 806bc510d7
2 changed files with 23 additions and 0 deletions
View File