This is an automated email from the ASF dual-hosted git repository.

husseinawala 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 dea2cc9afc6 AIP-84 Add back extra invalid tests (#46651)
dea2cc9afc6 is described below

commit dea2cc9afc61caf49621c3b1923bcf90e96e17e9
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Tue Feb 11 21:04:55 2025 +0100

    AIP-84 Add back extra invalid tests (#46651)
---
 .../core_api/routes/public/test_dag_run.py         | 40 +++++++---------------
 1 file changed, 13 insertions(+), 27 deletions(-)

diff --git a/tests/api_fastapi/core_api/routes/public/test_dag_run.py 
b/tests/api_fastapi/core_api/routes/public/test_dag_run.py
index 3723232a7cd..dd84804eff6 100644
--- a/tests/api_fastapi/core_api/routes/public/test_dag_run.py
+++ b/tests/api_fastapi/core_api/routes/public/test_dag_run.py
@@ -1197,33 +1197,19 @@ class TestTriggerDagRun:
     @pytest.mark.parametrize(
         "post_body, expected_detail",
         [
-            # Uncomment these 2 test cases once 
https://github.com/apache/airflow/pull/44306 is merged
-            # (
-            #     {"executiondate": "2020-11-10T08:25:56Z"},
-            #     {
-            #         "detail": [
-            #             {
-            #                 "input": "2020-11-10T08:25:56Z",
-            #                 "loc": ["body", "executiondate"],
-            #                 "msg": "Extra inputs are not permitted",
-            #                 "type": "extra_forbidden",
-            #             }
-            #         ]
-            #     },
-            # ),
-            # (
-            #     {"logical_date": "2020-11-10T08:25:56"},
-            #     {
-            #         "detail": [
-            #             {
-            #                 "input": "2020-11-10T08:25:56",
-            #                 "loc": ["body", "logical_date"],
-            #                 "msg": "Extra inputs are not permitted",
-            #                 "type": "extra_forbidden",
-            #             }
-            #         ]
-            #     },
-            # ),
+            (
+                {"executiondate": "2020-11-10T08:25:56Z"},
+                {
+                    "detail": [
+                        {
+                            "input": "2020-11-10T08:25:56Z",
+                            "loc": ["body", "executiondate"],
+                            "msg": "Extra inputs are not permitted",
+                            "type": "extra_forbidden",
+                        }
+                    ]
+                },
+            ),
             (
                 {"data_interval_start": "2020-11-10T08:25:56"},
                 {

Reply via email to