pytest - Pytest testing patterns for Python
Provides patterns for writing Python pytest tests, including fixtures, mocking, parametrization, markers, async tests, and CLI commands.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write basic pytest test structures
- Configure pytest fixtures and conftest
- Mock objects and functions
- Parametrize test functions
- Apply pytest markers
- Write async pytest tests
- Execute pytest CLI commands
Inputs
- Python test code
- Test parameters and assertions
Outputs
- Pytest test cases
- Fixture definitions
- Pytest execution commands
Requirements
- Python environment
- pytest library
