What problem does it solve?
Writing new tests, especially following strict TDD (Test-Driven Development) and project conventions, can be time-consuming and repetitive. This Skill automates the creation of test boilerplate, ensuring consistency and adherence to best practices from the start.
Core Features & Use Cases
- TDD-Compliant Boilerplate: Generates tests with the Arrange-Act-Assert (AAA) pattern, complete with type hints, descriptive docstrings, and proper imports.
- Multiple Test Types: Supports generating tests for functions, classes, async code, parametrized tests, and Pytest fixtures.
- Quality Standards Enforcement: Ensures generated tests meet project-specific quality standards, including no excessive mocking and focus on edge cases.
- Use Case: When starting a new feature, ask the AI to "generate tests for the
validate_email function in src/python_modern_template/validators.py" to get a ready-to-use test file, allowing you to focus on implementing the actual code.
Quick Start
Generate tests for the process_data function in src/my_module/processor.py.