provide-testkit
2025-12-23
Harden async fixtures and improve test configuration
8 files · 95+ · 18-
Async fixture hardening
2 files changed
async_fixtures.pyUse pytest_asyncio.fixture when available, switch to get_running_loop, break task child cycles before cancellation, filter out current task and tasks with childrentest_async_fixtures.pyNew test file covering async fixture behavior
- Rewrote clean_event_loop fixture to safely cancel pending tasks by breaking child cycles and excluding the current task, preventing recursive cancellation errors
harden
behavioral
1 file
async_fixtures.py
- Added pytest-asyncio fixture decorator support with fallback to plain pytest.fixture
streamline
behavioral
1 file
async_fixtures.py
Test configuration improvements
2 files changed
pyproject.tomlAdded ruff per-file annotation ignores for tests, removed --dist load from addopts, added parallel execution guidance commentconftest.pyRegistered provide.testkit.process.fixtures as pytest plugin