booru-viewer/tests
pax 278d4a291d ci: convert test_safety async tests off pytest-asyncio
The two validate_public_request hook tests used @pytest.mark.asyncio
which requires pytest-asyncio at collection time. CI only installs
httpx + Pillow + pytest, so the marker decoded as PytestUnknownMark
and the test bodies failed with "async def functions are not
natively supported."

Switches both to plain sync tests that drive the coroutine via
asyncio.run(), matching the pattern already used in test_cache.py
for the same reason.

Audit-Ref: SECURITY_AUDIT.md finding #1 (test infrastructure)
2026-04-11 16:38:36 -05:00
..
core ci: convert test_safety async tests off pytest-asyncio 2026-04-11 16:38:36 -05:00
gui security: fix #2 — apply lavf protocol whitelist via property API 2026-04-11 16:34:50 -05:00
__init__.py ship tests/ (81 tests, was gitignored) 2026-04-09 23:55:38 -05:00
conftest.py ship tests/ (81 tests, was gitignored) 2026-04-09 23:55:38 -05:00