Suppress them both in tests (via setup.py and pytest.ini) and in management command & application runs (via logsettings.py). Developers aren't looking at these warnings; they'll be dealt with in a formal process for upgrading Django. Suppress them for now so that important information isn't lost in the noise.
13 lines
746 B
INI
13 lines
746 B
INI
[pytest]
|
|
addopts = -p no:randomly --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none
|
|
# Enable default handling for all warnings, including those that are ignored by default;
|
|
# but hide rate-limit warnings (because we deliberately don't throttle test user logins)
|
|
# and field_data deprecation warnings (because fixing them requires a major low-priority refactoring)
|
|
filterwarnings =
|
|
default
|
|
ignore:No request passed to the backend, unable to rate-limit:UserWarning
|
|
ignore::xblock.exceptions.FieldDataDeprecationWarning
|
|
ignore::django.utils.deprecation.RemovedInDjango40Warning
|
|
ignore::django.utils.deprecation.RemovedInDjango41Warning
|
|
norecursedirs = .cache
|