FrankYang0529 commented on code in PR #74537:
URL: https://github.com/apache/airflow/pull/74537#discussion_r4244405346
##########
providers/common/ai/tests/unit/common/ai/operators/test_agent.py:
##########
@@ -1133,6 +1133,31 @@ def
test_execute_with_hitl_returns_the_approved_output_as_output_type(
assert result == expected
assert type(result) is type(expected)
+ @pytest.mark.skipif(
+ not AIRFLOW_V_3_1_PLUS, reason="Human in the loop is only compatible
with Airflow >= 3.1.0"
+ )
+
@patch("airflow.providers.common.ai.operators.agent.AgentOperator.run_hitl_review",
autospec=True)
+ @patch("airflow.providers.common.ai.operators.agent.PydanticAIHook",
autospec=True)
+ def
test_execute_with_hitl_parses_the_approved_output_for_a_list_of_output_types(
Review Comment:
Changed to use `pytest.param`.
--
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]