mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-09 22:53:27 -05:00
specifically - don't use `pytest.mark.xfail` directly in parametrize, instead use `pytest.param(*args, marks=pytest.mark.xfail)`. the old way is deprecated in pytest4 - for more information see https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize Also, make this an error in pytest.ini so if someone adds a new xfail, it'll crash
17 lines
395 B
INI
17 lines
395 B
INI
[pytest]
|
|
xfail_strict=true
|
|
testpaths = tests
|
|
log_level = 999
|
|
env =
|
|
NOTIFY_ENVIRONMENT=test
|
|
ADMIN_CLIENT_SECRET=dev-notify-secret-key
|
|
API_HOST_NAME=test
|
|
DANGEROUS_SALT=dev-notify-salt
|
|
SECRET_KEY=dev-notify-secret-key
|
|
ZENDESK_API_KEY=test
|
|
STATSD_PREFIX=stats-prefix
|
|
REDIS_ENABLED=0
|
|
|
|
filterwarnings =
|
|
error:Applying marks directly:pytest.RemovedInPytest4Warning
|