From 2ed30210c9a2843457782ddad9aba4a496f04ae6 Mon Sep 17 00:00:00 2001 From: Kalyan R Date: Sun, 24 Nov 2024 07:28:02 +0530 Subject: [PATCH] refactor TestPostDagRun.test_should_respond_200 (#44308) --- tests/api_connexion/endpoints/test_dag_run_endpoint.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/api_connexion/endpoints/test_dag_run_endpoint.py b/tests/api_connexion/endpoints/test_dag_run_endpoint.py index 1eb92438f4939..480548921be01 100644 --- a/tests/api_connexion/endpoints/test_dag_run_endpoint.py +++ b/tests/api_connexion/endpoints/test_dag_run_endpoint.py @@ -1079,7 +1079,6 @@ def test_end_date_gte_lte(self, payload, expected_dag_run_ids): class TestPostDagRun(TestDagRunEndpoint): @time_machine.travel(timezone.utcnow(), tick=False) - @pytest.mark.parametrize("logical_date_field_name", ["logical_date"]) @pytest.mark.parametrize( "dag_run_id, logical_date, note, data_interval_start, data_interval_end", [ @@ -1101,7 +1100,6 @@ class TestPostDagRun(TestDagRunEndpoint): def test_should_respond_200( self, session, - logical_date_field_name, dag_run_id, logical_date, note, @@ -1117,7 +1115,7 @@ def test_should_respond_200( request_json = {} if logical_date is not None: - request_json[logical_date_field_name] = logical_date + request_json["logical_date"] = logical_date if dag_run_id is not None: request_json["dag_run_id"] = dag_run_id if data_interval_start is not None: