fix: unlock and bump werkzeug (#27164)

This commit is contained in:
Daniel Vaz Gaspar
2024-02-20 10:42:32 +00:00
committed by GitHub
parent f7c5773a97
commit 3eedcb4a2f
7 changed files with 10 additions and 31 deletions

View File

@@ -117,8 +117,6 @@ class TestAsyncEventApi(SupersetTestCase):
def test_events_no_token(self):
self.login(username="admin")
self.client.set_cookie(
"localhost", app.config["GLOBAL_ASYNC_QUERIES_JWT_COOKIE_NAME"], ""
)
self.client.set_cookie(app.config["GLOBAL_ASYNC_QUERIES_JWT_COOKIE_NAME"], "")
rv = self.fetch_events()
assert rv.status_code == 401

View File

@@ -735,7 +735,7 @@ class TestPostChartDataApi(BaseTestChartDataApi):
app._got_first_request = False
async_query_manager_factory.init_app(app)
test_client.set_cookie(
"localhost", app.config["GLOBAL_ASYNC_QUERIES_JWT_COOKIE_NAME"], "foo"
app.config["GLOBAL_ASYNC_QUERIES_JWT_COOKIE_NAME"], "foo"
)
rv = test_client.post(CHART_DATA_URI, json=self.query_context_payload)
self.assertEqual(rv.status_code, 401)