Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Drives Django features with outside-in double-loop TDD, from functional tests down to view, form, and model unit tests.
73% 95%+23 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 16 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when a Django feature should be grown from observable user behavior down into views, forms, models, and helpers. Keep the outer test broad enough to prove user value and the inner tests small enough to keep the red/green loop fast.
Primary source: Harry Percival, Test-Driven Development with Python, 3rd ed. Guidance is transformed and paraphrased from chapters 1-7, chapter 24, and Appendix A, especially the user-story-to-functional-test flow, double-loop TDD, working-state-to-working-state refactoring, and outside-in development.
Start from the user-visible behavior.
Run the outer test and make the failure useful.
Drop into the inner loop.
RequestFactory, form instances, or model tests at the narrowest useful boundary.Make the inner test pass with minimal code.
Refactor only on green.
Read patterns.md for layer choices, refactoring rules, and failure-handling patterns.
| Signal | Next Test |
|---|---|
| User workflow not proven | Functional test |
| URL or redirect missing | URL/view test |
| Template output changed | View/template integration test or HTML parser assertion |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.