Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | # -- FILE: pytest.ini (or tox.ini) |
| 2 | [pytest] |
| 3 | DJANGO_SETTINGS_MODULE = toastermain.settings_test |
| 4 | |
| 5 | python_files = db/test_*.py commands/test_*.py views/test_*.py browser/test_*.py functional/test_*.py |
| 6 | |
| 7 | # --create-db - force re creation of the test database |
| 8 | # https://pytest-django.readthedocs.io/en/latest/database.html#create-db-force-re-creation-of-the-test-database |
| 9 | |
| 10 | # --html=report.html --self-contained-html |
| 11 | # https://docs.pytest.org/en/latest/usage.html#creating-html-reports |
| 12 | # https://pytest-html.readthedocs.io/en/latest/user_guide.html#creating-a-self-contained-report |
| 13 | addopts = --create-db --html="Toaster Tests Report.html" --self-contained-html |
| 14 | |
| 15 | # Define environment variables using pytest-env |
| 16 | # A pytest plugin that enables you to set environment variables in the pytest.ini file. |
| 17 | # https://pypi.org/project/pytest-env/ |
| 18 | env = |
| 19 | TOASTER_BUILDSERVER=1 |