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