mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00
chore: update to flask 2.3
This commit is contained in:
parent
eb7338c76c
commit
7928f8c4e7
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
from urllib.parse import urlparse, urlunparse
|
from urllib.parse import unquote, urlparse, urlunparse
|
||||||
|
|
||||||
from flask import session, url_for
|
from flask import session, url_for
|
||||||
from libfaketime import fake_time
|
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
|
# test the redirection to the authentication page when trying to access admin endpoints
|
||||||
resp = self.client.get("/create")
|
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
|
# test right password
|
||||||
resp = self.client.post(
|
resp = self.client.post(
|
||||||
|
|
|
@ -39,8 +39,8 @@ dependencies = [
|
||||||
"Flask-Talisman>=0.8,<2",
|
"Flask-Talisman>=0.8,<2",
|
||||||
"Flask-WTF>=0.14.3,<2",
|
"Flask-WTF>=0.14.3,<2",
|
||||||
"WTForms>=2.3.1,<3.1",
|
"WTForms>=2.3.1,<3.1",
|
||||||
"Flask>=2,<2.3",
|
"Flask>=2,<3",
|
||||||
"Werkzeug>=2,<2.3",
|
"Werkzeug>=2,<3",
|
||||||
"itsdangerous>=2,<3",
|
"itsdangerous>=2,<3",
|
||||||
"Jinja2>=3,<4",
|
"Jinja2>=3,<4",
|
||||||
"qrcode>=7.1,<8",
|
"qrcode>=7.1,<8",
|
||||||
|
|
Loading…
Reference in a new issue