What problem does it solve?
Transforms Python functions, classes, or modules into comprehensive, runnable pytest test suites so developers can validate behavior, guard refactors, and enforce coverage without manual, error-prone test writing.
Core Features & Use Cases
- Analyzes function signatures, dependency graphs, and complexity hotspots to enumerate happy path, boundary, error, and state tests.
- Designs scoped fixtures, conftest candidates, and teardown to ensure isolation and minimal flakiness.
- Produces mock strategies, patch boundaries, and async test patterns (pytest-asyncio) for code with external dependencies or coroutines.
- Use cases: generate tests for a changed function before a PR, scaffold parametrized tests for complex logic, or produce async test stubs for coroutine-based services.
Quick Start
Generate a standard pytest file for the function calculate_discount in sample_module.py and include happy path, boundary, and error tests.