pytest - Pytest testing patterns for Python
Provides guidance and code patterns for writing Python tests using pytest, including fixtures, mocking, parametrization, and markers.
Tags
Updated: 2026-09-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write pytest test structures
- Create pytest fixtures
- Mock dependencies with patch
- Parametrize test cases
- Apply pytest markers
- Write async pytest tests
Inputs
- Python source code
- Test specifications
Outputs
- Pytest test code
- Pytest CLI commands
Requirements
- Python environment
- pytest package
