chore: bump werkzeug and Flask (#23965)

This commit is contained in:
Daniel Vaz Gaspar
2023-05-12 15:01:30 +01:00
committed by GitHub
parent f7dd52b8f5
commit 97482c57b5
16 changed files with 106 additions and 75 deletions

View File

@@ -66,7 +66,7 @@ def permalink_salt() -> Iterator[str]:
def test_post(
test_client, login_as_admin, dashboard_id: int, permalink_salt: str
dashboard_id: int, permalink_salt: str, test_client, login_as_admin
) -> None:
resp = test_client.post(f"api/v1/dashboard/{dashboard_id}/permalink", json=STATE)
assert resp.status_code == 201
@@ -93,14 +93,14 @@ def test_post_access_denied(test_client, login_as, dashboard_id: int):
assert resp.status_code == 404
def test_post_invalid_schema(test_client, login_as_admin, dashboard_id: int):
def test_post_invalid_schema(dashboard_id: int, test_client, login_as_admin):
resp = test_client.post(
f"api/v1/dashboard/{dashboard_id}/permalink", json={"foo": "bar"}
)
assert resp.status_code == 400
def test_get(test_client, login_as_admin, dashboard_id: int, permalink_salt: str):
def test_get(dashboard_id: int, permalink_salt: str, test_client, login_as_admin):
key = test_client.post(
f"api/v1/dashboard/{dashboard_id}/permalink", json=STATE
).json["key"]