python-testing - Apply pytest and TDD testing patterns
Provides Python testing strategies with pytest, TDD, fixtures, mocking, parametrization, markers, and coverage practices.
Tags
Updated: 2026-10-05Typical Outputs
What this skill does
- Write failing tests
- Implement passing code
- Refactor tested code
- Create pytest fixtures
- Parametrize test cases
- Mock external dependencies
- Select tests with markers
- Measure code coverage
- Review test coverage
- Set up test infrastructure
Inputs
- Python application code
- Desired behaviors
- Test requirements
- Coverage targets
- External dependency behaviors
Outputs
- Pytest test suites
- Test execution results
- Coverage reports
- Configured fixtures and markers
Requirements
- Python environment
- pytest
- pytest coverage support
