guan404ming commented on code in PR #50487:
URL: https://github.com/apache/airflow/pull/50487#discussion_r2086555433


##########
providers/standard/tests/unit/standard/triggers/test_external_task.py:
##########
@@ -487,14 +508,29 @@ async def 
test_task_workflow_trigger_fail_count_eq_0(self, mock_get_count):
         result = trigger_task.result()
         assert isinstance(result, TriggerEvent)
         assert result.payload == {"status": "success"}
-        mock_get_count.assert_called_once_with(
-            dttm_filter=value,
-            external_task_ids=["external_task_op"],
-            external_task_group_id=None,
-            external_dag_id="external_task",
-            states=["success", "fail"],
+
+        assert mock_get_count.call_count == 2
+        mock_get_count.assert_has_calls(
+            [
+                mock.call(
+                    dttm_filter=value,
+                    external_task_ids=["external_task_op"],
+                    external_task_group_id=None,
+                    external_dag_id="external_task",
+                    states=["success", "fail"],
+                ),
+                mock.call(
+                    dttm_filter=value,
+                    external_task_ids=["external_task_op"],
+                    external_task_group_id=None,
+                    external_dag_id="external_task",
+                    states=["success", "fail"],
+                ),
+            ]

Review Comment:
   This case is in AF2 thus some field seems not worked here.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to