What problem does it solve?
This Skill helps developers adopt test-driven development and establish reliable, repeatable testing practices for Django applications so tests are fast, maintainable, and CI-ready.
Core Features & Use Cases
- Test configuration: Example pytest.ini and test settings for in-memory databases, faster hashing, and disabled migrations to speed up test runs.
- Fixtures and factories: Conftest fixtures and factory_boy patterns for creating users, products, and related objects to avoid repetitive setup.
- API and integration testing: Patterns and examples for testing Django REST Framework viewsets, serializers, and full checkout flows including mocking external services.
- Use Case: Convert a legacy Django app's brittle tests into a clean pytest-driven suite with factories, API client tests, and coverage reporting for CI pipelines.
Quick Start
Use the django-tdd skill to scaffold pytest configuration, conftest fixtures, and factory_boy examples for a Django project with DRF endpoints.