From 89e0b51319b111c0035092955893161ad0b49c96 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Thu, 23 Nov 2023 08:18:40 +0100 Subject: [PATCH] Revert "chore: update to flask 2.3" This reverts commit fb90627341a05b05420f493acee83fdf07e28af2. See #1272 --- ihatemoney/tests/budget_test.py | 4 ++-- setup.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ihatemoney/tests/budget_test.py b/ihatemoney/tests/budget_test.py index 7c6c55d8..b4ec2c24 100644 --- a/ihatemoney/tests/budget_test.py +++ b/ihatemoney/tests/budget_test.py @@ -1,7 +1,7 @@ from collections import defaultdict import datetime import re -from urllib.parse import unquote, urlparse, urlunparse +from urllib.parse import urlparse, urlunparse from flask import session, url_for from libfaketime import fake_time @@ -587,7 +587,7 @@ class TestBudget(IhatemoneyTestCase): # test the redirection to the authentication page when trying to access admin endpoints resp = self.client.get("/create") - assert "/admin?goto=/create" in unquote(resp.location) + assert '' in resp.data.decode("utf-8") # test right password resp = self.client.post( diff --git a/setup.cfg b/setup.cfg index 0d53b576..a08dc21b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,8 +38,8 @@ install_requires = Flask-Talisman>=0.8,<2 Flask-WTF>=0.14.3,<2 WTForms>=2.3.1,<3.1 - Flask>=2,<3 - Werkzeug>=2,<3 + Flask>=2,<2.3 + Werkzeug>=2,<2.3 itsdangerous>=2,<3 Jinja2>=3,<4 qrcode>=7.1,<8