@@ -46,7 +46,7 @@ def llm_request():
4646
4747
4848@pytest .mark .asyncio
49- @mock .patch ('google.adk.models.apigee_llm .Client' )
49+ @mock .patch ('google.genai .Client' )
5050async def test_generate_content_async_non_streaming (
5151 mock_client_constructor , llm_request
5252):
@@ -96,7 +96,7 @@ async def test_generate_content_async_non_streaming(
9696
9797
9898@pytest .mark .asyncio
99- @mock .patch ('google.adk.models.apigee_llm .Client' )
99+ @mock .patch ('google.genai .Client' )
100100async def test_generate_content_async_streaming (
101101 mock_client_constructor , llm_request
102102):
@@ -167,7 +167,7 @@ async def mock_stream_generator():
167167
168168
169169@pytest .mark .asyncio
170- @mock .patch ('google.adk.models.apigee_llm .Client' )
170+ @mock .patch ('google.genai .Client' )
171171async def test_generate_content_async_with_custom_headers (
172172 mock_client_constructor , llm_request
173173):
@@ -207,7 +207,7 @@ async def test_generate_content_async_with_custom_headers(
207207
208208
209209@pytest .mark .asyncio
210- @mock .patch ('google.adk.models.apigee_llm .Client' )
210+ @mock .patch ('google.genai .Client' )
211211async def test_vertex_model_path_parsing (mock_client_constructor ):
212212 """Tests that Vertex AI model paths are parsed correctly."""
213213 apigee_llm = ApigeeLlm (model = APIGEE_VERTEX_MODEL_ID , proxy_url = PROXY_URL )
@@ -249,7 +249,7 @@ async def test_vertex_model_path_parsing(mock_client_constructor):
249249
250250
251251@pytest .mark .asyncio
252- @mock .patch ('google.adk.models.apigee_llm .Client' )
252+ @mock .patch ('google.genai .Client' )
253253async def test_proxy_url_from_env_variable (mock_client_constructor ):
254254 """Tests that proxy_url is read from environment variable."""
255255 with mock .patch .dict (
@@ -381,7 +381,7 @@ def test_vertex_model_missing_project_or_location_raises_error(
381381 ),
382382 ],
383383)
384- @mock .patch ('google.adk.models.apigee_llm .Client' )
384+ @mock .patch ('google.genai .Client' )
385385async def test_model_string_parsing_and_client_initialization (
386386 mock_client_constructor ,
387387 model_string ,
0 commit comments