Add support for tests that use django.test.Client and that require a database, and use this support to test some of the wellknowns.views modules

This commit is contained in:
Danielle McLean 2018-02-06 16:12:36 +11:00
parent 380afe9831
commit cbc24d4774
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
6 changed files with 44 additions and 1 deletions

View file

@ -1,3 +1,3 @@
[pytest]
DJANGO_SETTINGS_MODULE = lemoncurry.settings.dev
DJANGO_SETTINGS_MODULE = lemoncurry.settings.test
python_files = tests/*.py