pytest-asyncio-patterns
Installation
SKILL.md
pytest-asyncio-patterns
Overview
Per pytest-asyncio.readthedocs.io:
pytest-asyncio runs async def test functions under pytest; without it,
coroutine tests are collected but never awaited. It provides the
@pytest.mark.asyncio marker (or an auto-mode that drops the marker),
async-aware fixtures with configurable event-loop scoping, and works with
FastAPI/Starlette (via httpx.AsyncClient) and aiohttp (via pytest-aiohttp).
Nearest neighbor: python-unit-tests covers the full framework but treats async
in one paragraph. This skill covers the asyncio path end to end: modes, loop
scoping, async fixtures, AsyncMock, and framework client patterns.