Running django tests with sqlite
Append the following lines in your settings: import sys if ‘test’ in sys.argv or ‘test_coverage’ in sys.argv: #Covers regular testing and django-coverage DATABASES[‘default’][‘ENGINE’] = ‘django.db.backends.sqlite3’ Make sure your actual database setting comes before them.