What problem does it solve? Django developers often struggle to set up consistent testing infrastructure and write maintainable tests for models, views, serializers, and REST APIs. This Skill provides a complete TDD workflow with ready-to-use pytest configuration, fixtures, factories, and testing patterns. ## Core Features & Use Cases - TDD Workflow Guidance: Red-Green-Refactor cycle applied to Django models, views, and DRF API endpoints. - Testing Infrastructure Setup: pytest.ini configuration, test settings with in-memory SQLite, disabled migrations, and reusable conftest.py fixtures. - Factory Boy Patterns: Model factories with sequences, fuzzy fields, SubFactory relations, and post-generation hooks for realistic test data. - Use Case: When building a new Django REST Framework endpoint, use this Skill to write failing serializer and ViewSet tests first, mock external services like Stripe, and verify the full checkout flow with integration tests. ## Quick Start Ask the AI to set up pytest-django testing with factory_boy factories and write TDD tests for your Django models and DRF API endpoints.