What problem does it solve?
This skill addresses the challenge of maintaining high-quality, reliable Python codebases by providing a structured approach to testing that prevents regressions without creating brittle, over-engineered test suites.
Core Features & Use Cases
- Comprehensive Testing Strategy: Implements unit, integration, contract, and property-based testing to ensure code correctness across different layers.
- Quality Gates: Provides patterns for managing test fixtures, mocking external dependencies, and handling non-deterministic factors like time and randomness.
- Use Case: When refactoring a complex data processing module, use this skill to establish a baseline of property-based tests that verify data invariants, ensuring that logic changes do not break existing business rules.
Quick Start
Use the py-testing skill to generate a pytest suite for the current module that includes unit tests for core logic and integration tests for external database dependencies.