pytest-gen
Installation
SKILL.md
Pytest Generation Skill
When generating tests, follow this structure.
Test Organization
- Group tests by function under test
- Use
@pytest.mark.parametrizefor multiple inputs - Use fixtures for shared setup
- Follow arrange/act/assert pattern
Coverage Requirements
- Happy path (expected usage)
- Edge cases (empty strings, None, boundary values)
- Error cases (invalid input, file not found, wrong types)
- Integration (functions working together)