helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
https://bootstrap-flask.readthedocs.io
Other
1.1k stars 189 forks source link

Deprecation warnings flask_wtf and jina2 #318

Open PanderMusubi opened 9 months ago

PanderMusubi commented 9 months ago

Pytest reports the following deprecation warnings:

=========================================== warnings summary ===========================================
../../.local/lib/python3.10/site-packages/flask_wtf/recaptcha/widgets.py:2
../../.local/lib/python3.10/site-packages/flask_wtf/recaptcha/widgets.py:2
  /home/sander/.local/lib/python3.10/site-packages/flask_wtf/recaptcha/widgets.py:2: DeprecationWarning: 'flask.Markup' is deprecated and will be removed in Flask 2.4. Import 'markupsafe.Markup' instead.
    from flask import Markup

tests/test_bootstrap4/test_render_table.py: 40 warnings
  /home/sander/.local/lib/python3.10/site-packages/jinja2/runtime.py:298: LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now available as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
    return __obj(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html