|
@@ -1,9 +1,5 @@
|
|
|
# -- FILE: pytest.ini (or tox.ini)
|
|
|
[pytest]
|
|
|
-DJANGO_SETTINGS_MODULE = toastermain.settings_test
|
|
|
-
|
|
|
-python_files = db/test_*.py commands/test_*.py views/test_*.py browser/test_*.py functional/test_*.py
|
|
|
-
|
|
|
# --create-db - force re creation of the test database
|
|
|
# https://pytest-django.readthedocs.io/en/latest/database.html#create-db-force-re-creation-of-the-test-database
|
|
|
|
|
@@ -17,3 +13,4 @@ addopts = --create-db --html="Toaster Tests Report.html" --self-contained-html
|
|
|
# https://pypi.org/project/pytest-env/
|
|
|
env =
|
|
|
TOASTER_BUILDSERVER=1
|
|
|
+ DJANGO_SETTINGS_MODULE=toastermain.settings_test
|