test: add pytest markers, conftest, fix Windows-incompatible existing tests

- Add tests/conftest.py with deterministic_rng + sample_profile fixtures
- Register unit/integration/e2e markers in pyproject.toml
- Mark existing 14 tests as @pytest.mark.unit
- Fix test_cli.py: use 'invisible_playwright' (underscore) for 'python -m'
- Fix test_translate_includes_gpu_renderer: assert Windows behavior (empty renderer)
This commit is contained in:
chrissbaumann
2026-05-14 11:21:10 +02:00
parent c690dbfd33
commit 957f84d9a5
6 changed files with 53 additions and 9 deletions
+7
View File
@@ -43,3 +43,10 @@ packages = ["src/invisible_playwright"]
[tool.hatch.build.targets.wheel.force-include]
"src/invisible_playwright/data" = "invisible_playwright/data"
"src/invisible_playwright/_fpforge/data" = "invisible_playwright/_fpforge/data"
[tool.pytest.ini_options]
markers = [
"unit: pure-logic tests, no I/O or external deps",
"integration: multi-module tests, no browser",
"e2e: requires patched Firefox binary and display",
]