From 1e0015dc8ec873c3e0d62a17b8b749a062fd5ce1 Mon Sep 17 00:00:00 2001 From: MooseyAnon Date: Sun, 8 Sep 2024 18:25:55 +0100 Subject: [PATCH] pytest.ini: only ignore flask_apispec deprecation warning Currently, we ignore all deprecation warnings as we know we are significantly behind in terms of python versions. As we are now upgrading to python3.12 we no longer need global warnings. However, it seems that the package `flask_apispec` has not updated marshmallow versions, which is causing deprecation warnings. There is a issues[1] along with a PR bit its been open for several months and does not look like it will be merged soon. In the meantime, we want to ignore `flask_apispec` specific deprecation warnings as its a 3rd party package and we have no control over whether it will be updated or not. [1] https://github.com/jmcarp/flask-apispec/issues/255 --- pytest.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index a2dda2c..c1690d5 100755 --- a/pytest.ini +++ b/pytest.ini @@ -3,4 +3,4 @@ markers = nostubs: Dont add certain mocks to a testcase (mainly used to cancel out an autouse=True fixture) filterwarnings = - ignore::DeprecationWarning + ignore::DeprecationWarning:flask_apispec.*