From ee7289f5d20e3d0aa65fe909f0d669045738712e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Mon, 6 Nov 2023 17:53:58 +0100 Subject: [PATCH] chore: update to flask 2.3 (#1244) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexis Métaireau --- ihatemoney/tests/budget_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ihatemoney/tests/budget_test.py b/ihatemoney/tests/budget_test.py index b4ec2c24..7c6c55d8 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 urlparse, urlunparse +from urllib.parse import unquote, 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 '' in resp.data.decode("utf-8") + assert "/admin?goto=/create" in unquote(resp.location) # test right password resp = self.client.post(