You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/08/04 19:37:02 UTC
[airflow] 07/07: Remove Werkzeug limitation after flask-login was fixed (#25291)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 4bfe13091391f6c206c2093a5f268326da1efd97
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Wed Jul 27 22:08:21 2022 +0200
Remove Werkzeug limitation after flask-login was fixed (#25291)
The Werkzeug limitation removed in #25270 can be removed now, when
Flask-login is fixed and 0.6.2 version is released that supports it.
(cherry picked from commit dbbe9ac87ebfff0527ce65695951b10419fcc763)
---
setup.cfg | 2 +-
tests/www/views/test_views.py | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index 8bfdaf713b..ce1be0141b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -112,7 +112,7 @@ install_requires =
# for example any new methods, are accounted for.
flask-appbuilder==4.1.2
flask-caching>=1.5.0
- flask-login>=0.5
+ flask-login>=0.6.2
flask-session>=0.4.0
flask-wtf>=0.15
graphviz>=0.12
diff --git a/tests/www/views/test_views.py b/tests/www/views/test_views.py
index fa79e145cb..b034ed0b37 100644
--- a/tests/www/views/test_views.py
+++ b/tests/www/views/test_views.py
@@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
import os
+import re
from typing import Callable
from unittest import mock
@@ -375,7 +376,7 @@ def test_get_task_stats_from_query():
assert data == expected_data
-INVALID_DATETIME_RESPONSE = "Invalid datetime: 'invalid'"
+INVALID_DATETIME_RESPONSE = re.compile(r"Invalid datetime: &#x?\d+;invalid&#x?\d+;")
@pytest.mark.parametrize(
@@ -432,4 +433,4 @@ def test_invalid_dates(app, admin_client, url, content):
resp = admin_client.get(url, follow_redirects=True)
assert resp.status_code == 400
- assert content in resp.get_data().decode()
+ assert re.search(content, resp.get_data().decode())