ProvenPin Install

Stacks

pytest-django recipes

6 tested pytest-django integration recipes with Django, Django REST Framework, factory-boy, django-ninja. Exact pinned versions and a last-passed receipt, last run 2026-10-15.

passed3/3python

Django 6 + Django REST Framework model API with pytest-django

A DRF ModelViewSet with a serializer, router and token-free permissions, tested with pytest-django and APIClient on in-memory SQLite.

django@6.1.2djangorestframework@3.18.3pytest-django@4.14.0
last passed 2026-10-15 13:28 UTC
passed6/6python

Django models with factory_boy and pytest-django db fixtures

Django models built with factory_boy DjangoModelFactory (SubFactory, get_or_create, traits) and tested offline on in-memory SQLite with pytest-django database access rules and on_commit capture.

django@6.1.2factory-boy@3.3.3pytest-django@4.14.0
last passed 2026-10-15 13:28 UTC
passed5/5python

Django Ninja API with Schema models and pagination on sqlite

A typed Django Ninja CRUD API with Schema input and output models, page-number pagination and sqlite, tested offline with the ninja TestClient and pytest-django.

django@6.1.2django-ninja@1.7.1pytest-django@4.14.0
last passed 2026-10-15 13:28 UTC
passed4/4python

Django post_save signal enqueuing a Celery task, tested with eager mode and on_commit

A post_save signal queues a Celery task only after the row commits via transaction.on_commit, then tests run offline on in-memory SQLite with Celery eager mode and pytest-django's on_commit capture.

django@6.1.2celery@5.6.3pytest-django@4.14.0
last passed 2026-10-15 13:28 UTC
passed5/5python

Django REST Framework JWT auth with simplejwt, tested offline

Obtain and refresh JWT pairs with simplejwt, add custom claims, protect a DRF view, and test expired-token rejection on sqlite in-memory with pytest-django.

django@6.1.2djangorestframework@3.18.3djangorestframework-simplejwt@5.5.1
last passed 2026-10-15 13:28 UTC
passed5/5python

DRF ModelViewSet with django-filter range, exact and ordering filters

A ModelViewSet with a django-filter FilterSet for price ranges, exact name and ordering, plus page-number pagination, configured in code and tested offline with APIClient on in-memory SQLite.

django@6.1.2djangorestframework@3.18.3django-filter@26.2.0
last passed 2026-10-15 13:28 UTC

Used together with pytest-django

DjangoDjango REST Frameworkfactory-boydjango-ninjaCelerydjangorestframework-simplejwtdjango-filter