🚨(pytest) fix or suppress warnings during backend tests

Avoid unnecessary noise from testing processes
This commit is contained in:
Laurent Bossavit
2025-02-10 16:43:45 +01:00
committed by Laurent Bossavit
parent 0f290df24a
commit fbb4797f29
5 changed files with 22 additions and 6 deletions

View File

@@ -140,6 +140,12 @@ python_files = [
"test_*.py",
"tests.py",
]
filterwarnings = [
# This one can be removed when upgrading to Django 6.0
'ignore:The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated.',
# This one can be removed after upgrading DRF to 3.16
"ignore:Converter 'drf_format_suffix'"
]
[tool.coverage.run]
branch = true