Skip to content

Commit

Permalink
chore: update to flask 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Oct 8, 2023
1 parent eb7338c commit 3da7e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ihatemoney/tests/budget_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import defaultdict
import datetime
import markupsafe
import re
from urllib.parse import urlparse, urlunparse

Expand Down Expand Up @@ -587,7 +588,7 @@ def test_admin_authentication(self):

# test the redirection to the authentication page when trying to access admin endpoints
resp = self.client.get("/create")
assert '<a href="/admin?goto=%2Fcreate">' in resp.data.decode("utf-8")
assert f'<a href="{markupsafe.escape("/admin?goto=/create")}">' in resp.data.decode("utf-8")

# test right password
resp = self.client.post(
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ dependencies = [
"Flask-Talisman>=0.8,<2",
"Flask-WTF>=0.14.3,<2",
"WTForms>=2.3.1,<3.1",
"Flask>=2,<2.3",
"Werkzeug>=2,<2.3",
"Flask>=2,<3",
"Werkzeug>=2,<3",
"itsdangerous>=2,<3",
"Jinja2>=3,<4",
"qrcode>=7.1,<8",
Expand Down

0 comments on commit 3da7e74

Please sign in to comment.