[Answer]-Create model just for testing

1👍

A good approach is to use separate settings file for your testing environment. You could have an application that is listed only in the INSTALLED_APPS of these test settings, and implement your test models there. This approach is also good if for example you want to use nose to run your tests etc… Then you should run your tests like this:

python manage.py test --settings=my_project.test_settings

Leave a comment