2017-06-05 19:45:08 +03:00
|
|
|
[tool:pytest]
|
2017-06-05 19:53:18 +03:00
|
|
|
testpaths = tests
|
2018-01-22 14:47:36 +03:00
|
|
|
norecursedirs = __pycache__ ui
|
2017-06-05 19:45:08 +03:00
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
2018-10-29 20:07:38 +03:00
|
|
|
# Enable display of skipped/expected fail test reasons.
|
|
|
|
# Disable unused auto-loaded mozlog plugin.
|
2020-12-21 23:54:07 +03:00
|
|
|
addopts = -rsx -p no:mozlog
|
2018-04-11 04:22:14 +03:00
|
|
|
# Make most warnings fatal (including the hidden by default DeprecationWarning):
|
|
|
|
# https://docs.pytest.org/en/latest/warnings.html
|
2022-06-01 13:00:28 +03:00
|
|
|
# https://docs.python.org/3.9/library/warnings.html#warning-categories
|
2018-04-11 04:22:14 +03:00
|
|
|
filterwarnings =
|
|
|
|
error
|
|
|
|
ignore::ImportWarning
|
|
|
|
ignore::PendingDeprecationWarning
|
2023-06-30 17:29:47 +03:00
|
|
|
# Gunicorn uses deprecated calls to pkg_resources, this issue is tracked in
|
|
|
|
# https://github.com/benoitc/gunicorn/issues/2840 and will likely be fixed in
|
|
|
|
# version 21.0.0.
|
2023-06-30 16:45:55 +03:00
|
|
|
ignore:.*pkg_resources.*:DeprecationWarning
|
2018-11-16 22:18:18 +03:00
|
|
|
# WhiteNoise warns if either `.django-static/` or `.build/` do not exist at startup,
|
2018-08-14 02:03:23 +03:00
|
|
|
# however this is expected when running tests since Django collectstatic and yarn build
|
|
|
|
# (which create those directories) typically aren't run apart from during deployments.
|
2023-06-28 16:00:06 +03:00
|
|
|
ignore:No directory at.*:UserWarning
|
2017-06-05 19:45:08 +03:00
|
|
|
markers =
|
|
|
|
slow: mark a test as slow.
|
2017-11-17 12:48:05 +03:00
|
|
|
xfail_strict = true
|
2023-06-16 21:28:41 +03:00
|
|
|
asyncio_mode = auto
|