vatsrahul1001 commented on code in PR #46295:
URL: https://github.com/apache/airflow/pull/46295#discussion_r1940898590


##########
tests/api_fastapi/core_api/routes/public/test_dag_run.py:
##########
@@ -1333,28 +1332,8 @@ def 
test_should_response_200_for_duplicate_logical_date(self, test_client):
             json={"dag_run_id": RUN_ID_2, "note": note},
         )
 
-        assert response_1.status_code == response_2.status_code == 200
-        body1 = response_1.json()
-        body2 = response_2.json()
-
-        for each_run_id, each_body in [(RUN_ID_1, body1), (RUN_ID_2, body2)]:
-            assert each_body == {
-                "dag_run_id": each_run_id,
-                "dag_id": DAG1_ID,
-                "logical_date": now,
-                "queued_at": now,
-                "start_date": None,
-                "end_date": None,
-                "data_interval_start": now,
-                "data_interval_end": now,
-                "last_scheduling_decision": None,
-                "run_type": "manual",
-                "state": "queued",
-                "external_trigger": True,
-                "triggered_by": "rest_api",
-                "conf": {},
-                "note": note,
-            }
+        assert response_1.status_code == 200
+        assert response_2.status_code == 409

Review Comment:
   Added body check for 200



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to