@@ -307,18 +307,6 @@ async def test_google_model_thinking_config(allow_model_requests: None, google_p
307
307
assert result .output == snapshot ('The capital of France is **Paris**.' )
308
308
309
309
310
- @pytest .mark .skipif (
311
- not os .getenv ('CI' , False ), reason = 'Requires properly configured local google vertex config to pass'
312
- )
313
- async def test_google_model_vertex_labels (allow_model_requests : None ): # pragma: lax no cover
314
- provider = GoogleProvider (location = 'global' , project = 'pydantic-ai' )
315
- model = GoogleModel ('gemini-2.0-flash' , provider = provider )
316
- settings = GoogleModelSettings (google_labels = {'environment' : 'test' , 'team' : 'analytics' })
317
- agent = Agent (model = model , system_prompt = 'You are a helpful chatbot.' , model_settings = settings )
318
- result = await agent .run ('What is the capital of France?' )
319
- assert result .output == snapshot ('The capital of France is Paris.\n ' )
320
-
321
-
322
310
async def test_google_model_gla_labels_raises_value_error (allow_model_requests : None , google_provider : GoogleProvider ):
323
311
model = GoogleModel ('gemini-2.0-flash' , provider = google_provider )
324
312
settings = GoogleModelSettings (google_labels = {'environment' : 'test' , 'team' : 'analytics' })
@@ -360,6 +348,18 @@ async def test_google_model_vertex_provider(allow_model_requests: None):
360
348
assert result .output == snapshot ('The capital of France is Paris.\n ' )
361
349
362
350
351
+ @pytest .mark .skipif (
352
+ not os .getenv ('CI' , False ), reason = 'Requires properly configured local google vertex config to pass'
353
+ )
354
+ async def test_google_model_vertex_labels (allow_model_requests : None ): # pragma: lax no cover
355
+ provider = GoogleProvider (location = 'global' , project = 'pydantic-ai' )
356
+ model = GoogleModel ('gemini-2.0-flash' , provider = provider )
357
+ settings = GoogleModelSettings (google_labels = {'environment' : 'test' , 'team' : 'analytics' })
358
+ agent = Agent (model = model , system_prompt = 'You are a helpful chatbot.' , model_settings = settings )
359
+ result = await agent .run ('What is the capital of France?' )
360
+ assert result .output == snapshot ('The capital of France is Paris.\n ' )
361
+
362
+
363
363
async def test_google_model_iter_stream (allow_model_requests : None , google_provider : GoogleProvider ):
364
364
model = GoogleModel ('gemini-2.0-flash' , provider = google_provider )
365
365
agent = Agent (model = model , system_prompt = 'You are a helpful chatbot.' )
0 commit comments