python-testing-advanced
Installation
SKILL.md
Python Testing — Advanced Patterns
This skill extends python-testing with async testing, advanced mocking, test organization, common patterns, and configuration.
When to Activate
- Testing async code (FastAPI, aiohttp, asyncio)
- Structuring large test suites
- Setting up pytest configuration for projects
- Testing database layers, API endpoints, or class methods in depth
- Mocking async functions and async context managers with
AsyncMock - Writing integration tests for FastAPI endpoints using
httpx.AsyncClient - Configuring
pytest.iniorpyproject.tomlwith coverage thresholds and custom markers - Organizing tests into unit, integration, and e2e directories with appropriate shared conftest fixtures