Django TDD
Test-driven Django development with pytest-django: red-green-refactor, factory_boy, mocking, coverage, and DRF API testing.
- What
- Test-driven Django development with pytest-django: red-green-refactor, factory_boy, mocking, coverage, and DRF API testing.
- Cost
- Free
- Needs
- Use "Django TDD" with your Muse.
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor: a testing skill for driving Django features test-first with pytest instead of Django's default runner. It teaches the red-green-refactor cycle the Django way: write the failing test first (a user creation test that asserts email, password check, and staff flags), make it pass with the smallest model or factory change, then refactor while the suite stays green. You get pytest configuration (DJANGO_SETTINGS_MODULE, test paths), factory_boy factories instead of brittle fixtures, mocking strategies for external services, coverage measurement to find untested branches, and Django REST Framework API testing for models, views, and serializers. The emphasis is on tests that survive refactoring: factories over fixtures, behavior over implementation details. By @affaan-m, listed here with credit to its creator. From the affaan-m/ECC repository (MIT). Honest caveats: pure guidance, nothing to install; assumes a Django project with pytest-django available; TDD is a discipline, the skill shows the way but cannot enforce the red step for you. Skill Harbor never reviews the code, review it yourself before use.
Version:
Install
Copy the install package below, then paste it into MuseThe install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Use "Django TDD" with your Muse. Prerequisites: a Django project with pytest-django installed. Guidance skill, nothing to install. 1. Open the skill: https://github.com/affaan-m/ECC/blob/main/skills/django-tdd/SKILL.md and copy the full SKILL.md text. 2. Paste it into a chat with Muse and add: "Drive this feature test-first: write the failing pytest-django test before any implementation." 3. For existing code: "Add factory_boy factories and coverage for this app's models and DRF serializers." Tip: insist on the red step visibly; ask Muse to show the failing test output before writing implementation code. Safety: a skill is plain-text instructions; it runs nothing by itself. Never paste secrets into a chat, and review anything Muse proposes before it changes your code.
Saved to your recent installs. Find it anytime on /connect.
Questions
How do I install a build?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.