diff --git a/pyproject.toml b/pyproject.toml index 2a3f154bd4..2271c2df8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -181,6 +181,18 @@ testpaths = ["rdmo"] python_files = "test_*[!.txt].py" pythonpath = [".", "testing"] addopts = "-p no:randomly" +filterwarnings = [ + # fail on RemovedInDjango50Warning exception + "error::django.utils.deprecation.RemovedInDjango50Warning", + + # ignore errors raised from within coreapi 2.3.3 + "ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning", + "ignore:pkg_resources is deprecated as an API:DeprecationWarning", + + # ignore errors raised from within django itself + # django/core/files/storage/__init__.py + "ignore:django.core.files.storage.get_storage_class is deprecated:django.utils.deprecation.RemovedInDjango51Warning", +] [tool.coverage.run] source = ["rdmo"]