From 2c03b632480d2b74c91c383a2b491d2153fa0d70 Mon Sep 17 00:00:00 2001 From: Pravin Kamble Date: Fri, 30 Jan 2026 20:03:33 +0530 Subject: [PATCH] Ignore deprecation warnings from coreapi --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7527f84c7..e9ca8a1b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,10 @@ keep_full_version = true [tool.pytest.ini_options] addopts = "--tb=short --strict-markers -ra" testpaths = [ "tests" ] -filterwarnings = [ "ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF318Warning" ] +filterwarnings = [ + "ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF318Warning", + "ignore:'cgi' is deprecated:DeprecationWarning", +] [tool.coverage.run] # NOTE: source is ignored with pytest-cov (but uses the same).