This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new dbbe9ac87e Remove Werkzeug limitation after flask-login was fixed 
(#25291)
dbbe9ac87e is described below

commit dbbe9ac87ebfff0527ce65695951b10419fcc763
Author: Jarek Potiuk <[email protected]>
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.
---
 setup.cfg                     | 6 ++----
 tests/www/views/test_views.py | 5 +++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index d7dd1069a5..1cc2e4b6ad 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -109,7 +109,7 @@ install_requires =
     # for example any new methods, are accounted for.
     flask-appbuilder==4.1.3
     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
@@ -149,9 +149,7 @@ install_requires =
     termcolor>=1.1.0
     typing-extensions>=4.0.0
     unicodecsv>=0.14.1
-    # werkzeoug 2.2.0 breaks flask-login. see 
https://github.com/maxcountryman/flask-login/issues/686 for details.
-    # we need werkzeug<2.2 limitation until flask_login are handle it
-    werkzeug>=2.0,<2.2
+    werkzeug>=2.0
 
 [options.packages.find]
 include =
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: &#x27;invalid&#x27;"
+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())

Reply via email to