pytest-django-patterns
Installation
SKILL.md
pytest-django Testing Patterns
TDD Workflow (RED-GREEN-REFACTOR)
Always follow this cycle:
- RED: Write a failing test first that describes desired behavior
- GREEN: Write minimal code to make the test pass
- REFACTOR: Clean up code while keeping tests green
- REPEAT: Never write production code without a failing test
Critical rule: If implementing a feature or fixing a bug, write the test BEFORE touching production code.