What problem does it solve?
Django-tdd addresses the challenge of ensuring correct behavior in Django applications by enabling thorough, repeatable testing with pytest-django, factory_boy, and Django REST Framework.
Core Features & Use Cases
- Structured TDD workflow: write failing tests, implement minimal code to pass, refactor while keeping tests green.
- Fixtures & factories: leverage factory_boy for consistent, scalable test data across models and API endpoints.
- DRF API testing: verify serializers, views, and endpoints with unit and integration tests to ensure API reliability.
- Real-world scenarios: validate new Django apps, models, views, and serializers in a fast feedback loop.
Quick Start
Set up a new Django project and run pytest to exercise the TDD workflow. Install dependencies, write a failing test for a model or API, implement the minimal code to pass, and iterate until the tests are green.