About
Pytest Patterns is a specialized Claude Code skill designed to elevate the quality of Python backend testing, specifically optimized for FastAPI applications. It enforces a Test-Driven Development (TDD) workflow, providing standardized templates for clear test naming, the Arrange-Act-Assert pattern, and robust isolation techniques. By prioritizing real database connections over brittle mocks for internal logic and focusing on critical branch coverage, this skill ensures that your test suite is both reliable and comprehensive. It includes specialized commands for generating fixtures and mocks, alongside a test-reviewer agent that analyzes coverage and code quality.