Skip to content

Commit

Permalink
chore: add filterwarnings to pytest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Sep 11, 2023
1 parent c2685ae commit ea0894d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit ea0894d

Please sign in to comment.