fix(ci): set asyncio_default_fixture_loop_scope=function

Ensures each test gets its own event loop, preventing cross-test
connection/future leakage in pytest-asyncio.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-15 06:50:19 -05:00
parent 0a26637fb8
commit aa3bc4bb91

View File

@@ -49,6 +49,7 @@ packages = ["app"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
markers = [
"integration: marks tests as integration tests requiring PostgreSQL (deselect with '-m \"not integration\"')",