Lee-W commented on code in PR #75369:
URL: https://github.com/apache/airflow/pull/75369#discussion_r4519993544


##########
providers/common/ai/tests/unit/common/ai/hooks/test_pydantic_ai.py:
##########
@@ -1830,6 +1832,305 @@ def test_reports_provider_class_build_failure(
         assert "unexpected keyword argument 'api_key'" in message
 
 
+class TestPydanticAIHookEnsureModelReady:
+    _HOOK_MODULE = "airflow.providers.common.ai.hooks.pydantic_ai"
+
+    @staticmethod
+    def _build_hook(
+        *,
+        model_id: str | None = "ollama:llama3",
+        host: str | None = "http://ollama:11434/v1";,
+        **hook_kwargs,
+    ) -> tuple[PydanticAIHook, Connection]:
+        hook = PydanticAIHook(llm_conn_id="local_conn", model_id=model_id, 
**hook_kwargs)
+        conn = Connection(conn_id="local_conn", conn_type="pydanticai", 
host=host)
+        return hook, conn
+
+    @staticmethod
+    def _install_fake_clock(module: str):

Review Comment:
   Removed together with the polling: `ensure_model_ready` no longer sleeps or 
reads the clock, so neither helper is left.



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