5👍
✅
There is a python package called Django Test Addons which does exactly what you are asking for. It provides support for testing mongodb, redis along with few other databases like neo4j with django.
pip install django-test-addons
Documentation:- Read the docs
Github url:- Source code
Source:stackexchange.com