Skip to content

Commit

Permalink
pytest.ini: only ignore flask_apispec deprecation warning
Browse files Browse the repository at this point in the history
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] jmcarp/flask-apispec#255
  • Loading branch information
MooseyAnon committed Sep 14, 2024
1 parent 49ec9ad commit 1e0015d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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.*

0 comments on commit 1e0015d

Please sign in to comment.