blob: f07076b7eac489f5786d1562a504e20ebe92da4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# -- 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
# --html=report.html --self-contained-html
# https://docs.pytest.org/en/latest/usage.html#creating-html-reports
# https://pytest-html.readthedocs.io/en/latest/user_guide.html#creating-a-self-contained-report
addopts = --create-db --html="Toaster Tests Report.html" --self-contained-html
# Define environment variables using pytest-env
# A pytest plugin that enables you to set environment variables in the pytest.ini file.
# https://pypi.org/project/pytest-env/
env =
TOASTER_BUILDSERVER=1
|