From 0be052bc1fbeef63ed24898542a39e2ee4863cae Mon Sep 17 00:00:00 2001 From: NixReaper Date: Sat, 12 Sep 2026 04:46:08 -0500 Subject: [PATCH] Pin pytest-asyncio below 1.0 1.x changed session-scoped async fixture/event-loop behavior across test modules, breaking the single-shared-engine assumption tests/conftest.py's engine fixture and the asyncio_default_*_loop_scope settings depend on. Surfaced as sporadic "relation ... does not exist" failures in specific integration test files when run alongside the full suite, despite those same files passing cleanly when run standalone -- confirmed via a real Postgres run on production hardware while verifying the watch-provider dedup fix. Co-Authored-By: Claude Sonnet 5 --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 354e042..940fad6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,13 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest>=8.3.0", - "pytest-asyncio>=0.24.0", + # <1.0: 1.x changed session-scoped async fixture/event-loop behavior + # across test modules, breaking the single-shared-engine assumption + # tests/conftest.py:engine and the asyncio_default_*_loop_scope + # settings below depend on (surfaced as sporadic "relation ... does + # not exist" failures in specific test files when run alongside others, + # despite passing standalone). + "pytest-asyncio>=0.24.0,<1.0.0", "pytest-cov>=5.0.0", "ruff>=0.6.9", "mypy>=1.11.2",