diff options
Diffstat (limited to 'bitbake/lib/toaster/pytest.ini')
-rw-r--r-- | bitbake/lib/toaster/pytest.ini | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/pytest.ini b/bitbake/lib/toaster/pytest.ini new file mode 100644 index 0000000000..071c65fcd5 --- /dev/null +++ b/bitbake/lib/toaster/pytest.ini @@ -0,0 +1,16 @@ +# -- FILE: pytest.ini (or tox.ini) +[pytest] +# --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 + DJANGO_SETTINGS_MODULE=toastermain.settings_test |