helloflask / helloflask/bootstrap-flask

Deprecation warnings flask_wtf and jina2

Open
#318 1 comment 0 reactions 0 assignees View on GitHub
dependencies good first issue
Dominant language
SCSS
Stars
1.2k
Forks
193
Avg merge
4m
Merged PRs (30d)
3

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.