What problem does it solve? Django projects often lack structured testing practices, leading to fragile code, untested API endpoints, and slow feedback loops. This Skill provides a complete TDD methodology with ready-to-use configurations, fixtures, factories, and test patterns for Django and Django REST Framework. ## Core Features & Use Cases - pytest-django Setup: Provides pytest.ini configuration, test settings with in-memory SQLite, disabled migrations, and reusable conftest.py fixtures for users, clients, and authenticated API clients. - Factory-Based Test Data: Demonstrates factory_boy patterns with DjangoModelFactory, sequences, fuzzy attributes, SubFactory relations, and post-generation hooks for many-to-many fields. - Full-Stack Test Coverage: Covers model tests, view tests, DRF serializer and ViewSet API tests, mocking external services like Stripe, email testing with locmem backend, and end-to-end integration flows. - Use Case: When building a new Django REST Framework endpoint, follow the Red-Green-Refactor cycle to write failing API tests first, then implement the serializer and view until tests pass, using factories for test data. ## Quick Start Ask the AI to set up a pytest-django test suite with factories and write TDD tests for a Django model and its DRF API endpoints.