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 2ed30210c9a refactor TestPostDagRun.test_should_respond_200 (#44308)
2ed30210c9a is described below

commit 2ed30210c9a2843457782ddad9aba4a496f04ae6
Author: Kalyan R <[email protected]>
AuthorDate: Sun Nov 24 07:28:02 2024 +0530

    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 1eb92438f49..480548921be 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 @@ class TestGetDagRunBatchDateFilters(TestDagRunEndpoint):
 
 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 @@ class TestPostDagRun(TestDagRunEndpoint):
 
         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:

Reply via email to