What problem does it solve?
Django testing is often inconsistent, slow, and incomplete, leading to fragile code and undetected bugs that reach production.
Core Features & Use Cases
- TDD Workflow Guidance: Step-by-step Red-Green-Refactor cycle tailored for Django models, views, and Django REST Framework APIs.
- Test Infrastructure Setup: Pre-configured pytest settings, test database configuration, and reusable conftest fixtures for fast, reliable test runs.
- Factory Boy Integration: Reusable model factories to eliminate repetitive test data setup and improve test maintainability.
- Mocking & Coverage Best Practices: Patterns for mocking external services like Stripe and email backends, plus guidance to hit 80%+ code coverage targets.
- Use Case: A Django e-commerce team can use this skill to set up a full test suite for product models, DRF API endpoints, and checkout flows in minutes, catching regressions before deployment.
Quick Start
Use the django-tdd skill to set up a pytest test suite for your Django project's product API with factory_boy fixtures and DRF API client tests.