inveniosoftware / inveniosoftware/flask-breadcrumbs

Deprecation warnings with Flask 2.2

Open
#56 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
30
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Runnning the tests on master (539c2ec6ade56c4e4341807cb0f6c26389ac7232) yields deprecation warnings due to Flask 2.2:

```
============================================================================================================= test session starts =============================================================================================================
platform linux -- Python 3.9.16, pytest-7.2.1, pluggy-1.0.0
cachedir: .tox/py39/.pytest_cache
rootdir: /home/flo/tmp/flask-breadcrumbs
plugins: pep8-1.0.6, cov-4.0.0
collected 9 items

tests/test_core.py ......... [100%]

============================================================================================================== warnings summary ===============================================================================================================
tests/test_core.py: 24 warnings
tmp/flask-breadcrumbs/.tox/py39/lib/python3.9/site-packages/flask/scaffold.py:50: DeprecationWarning: 'before_first_request' is deprecated and will be removed in Flask 2.3. Run setup code while creating the application instead.
return f(self, *args, **kwargs)

tests/test_core.py: 12 warnings
tmp/flask-breadcrumbs/.tox/py39/lib/python3.9/site-packages/flask/scaffold.py:50: DeprecationWarning: 'before_app_first_request' is deprecated and will be removed in Flask 2.3. Use 'record_once' instead to run setup code when registering the blueprint.
return f(self, *args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================================================= 9 passed, 36 warnings in 0.19s ========================================================================================================
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.