chore: update to flask 2.3 (#1244)

Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
Éloi Rivard 2023-11-06 17:53:58 +01:00 committed by GitHub
parent c9a709953f
commit ee7289f5d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '<a href="/admin?goto=%2Fcreate">' in resp.data.decode("utf-8")
assert "/admin?goto=/create" in unquote(resp.location)
# test right password
resp = self.client.post(