FrankYang0529 commented on code in PR #69397:
URL: https://github.com/apache/airflow/pull/69397#discussion_r3551165822


##########
airflow-ctl/tests/airflow_ctl/api/test_operations.py:
##########
@@ -1489,6 +1493,84 @@ def handle_request(request: httpx.Request) -> 
httpx.Response:
         assert response == self.provider_collection_response
 
 
+class TestTaskInstancesOperations:
+    task_instance_response = TaskInstanceResponse(
+        id=uuid.UUID("4d828a62-a417-4936-a7a6-2b3fabacecab"),
+        task_id="task_id",
+        dag_id="dag_id",
+        dag_run_id="dag_run_id",
+        map_index=-1,
+        run_after=datetime.datetime(2025, 1, 1, tzinfo=datetime.timezone.utc),
+        state=TaskInstanceState.SUCCESS,
+        try_number=1,
+        max_tries=0,
+        task_display_name="task_id",
+        dag_display_name="dag_id",
+        pool="default_pool",
+        pool_slots=1,
+        executor_config="{}",
+    )
+    task_dependency_collection_response = TaskDependencyCollectionResponse(
+        dependencies=[TaskDependencyResponse(name="Trigger Rule", 
reason="upstream tasks not done")],
+    )
+
+    @pytest.mark.parametrize("map_index", [None, -1])
+    def test_get(self, map_index):
+        def handle_request(request: httpx.Request) -> httpx.Response:

Review Comment:
   Extract as `_make_client_asserting_path` for this.



-- 
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