From 5d21261db5e3c1cf9d1cf3488e8cb968c59f9904 Mon Sep 17 00:00:00 2001 From: Bugra Ozturk Date: Thu, 24 Oct 2024 20:50:21 +0200 Subject: [PATCH] Amend update_mask as array --- tests/api_fastapi/core_api/routes/public/test_dags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api_fastapi/core_api/routes/public/test_dags.py b/tests/api_fastapi/core_api/routes/public/test_dags.py index e4c45a77ea667..03253dbfa7a7a 100644 --- a/tests/api_fastapi/core_api/routes/public/test_dags.py +++ b/tests/api_fastapi/core_api/routes/public/test_dags.py @@ -193,7 +193,7 @@ class TestPatchDag(TestDagEndpoint): "query_params, dag_id, body, expected_status_code, expected_is_paused", [ ({}, "fake_dag_id", {"is_paused": True}, 404, None), - ({"update_mask": "field_1, is_paused"}, DAG1_ID, {"is_paused": True}, 400, None), + ({"update_mask": ["field_1", "is_paused"]}, DAG1_ID, {"is_paused": True}, 400, None), ({}, DAG1_ID, {"is_paused": True}, 200, True), ({}, DAG1_ID, {"is_paused": False}, 200, False), ({"update_mask": ["is_paused"]}, DAG1_ID, {"is_paused": True}, 200, True),