pytest-patterns
Installation
SKILL.md
Pytest Patterns
When to Use
Activate this skill when:
- Writing unit tests for service or repository classes
- Writing integration tests for FastAPI endpoints with httpx.AsyncClient
- Creating or refactoring pytest fixtures and conftest files
- Setting up factory_boy factories for test data
- Testing async code with pytest-asyncio
- Mocking external services (HTTP APIs, email, queues)
- Adding parametrized tests for input variations
- Auditing or improving test coverage
Do NOT use this skill for:
- Frontend React component or hook tests (use
react-testing-patterns) - E2E browser tests with Playwright (use
e2e-testing) - TDD red-green-refactor workflow enforcement (use
tdd-workflow) - Writing application code (use
python-backend-expert)
Related skills