@@ -178,7 +178,6 @@ def test_sse_server_conflicting_timeout_params():
178178 )
179179
180180
181- @pytest .mark .vcr ()
182181async def test_agent_with_stdio_server (allow_model_requests : None , agent : Agent ):
183182 async with agent :
184183 result = await agent .run ('What is 0 degrees Celsius in Fahrenheit?' )
@@ -280,7 +279,6 @@ def get_none() -> None: # pragma: no cover
280279 await agent .run ('No conflict' )
281280
282281
283- @pytest .mark .vcr ()
284282async def test_agent_with_server_not_running (agent : Agent , allow_model_requests : None ):
285283 result = await agent .run ('What is 0 degrees Celsius in Fahrenheit?' )
286284 assert result .output == snapshot ('0 degrees Celsius is 32.0 degrees Fahrenheit.' )
@@ -306,7 +304,6 @@ async def test_log_level_set(run_context: RunContext[int]):
306304 assert result == snapshot ('info' )
307305
308306
309- @pytest .mark .vcr ()
310307async def test_tool_returning_str (allow_model_requests : None , agent : Agent ):
311308 async with agent :
312309 result = await agent .run ('What is the weather in Mexico City?' )
@@ -379,7 +376,6 @@ async def test_tool_returning_str(allow_model_requests: None, agent: Agent):
379376 )
380377
381378
382- @pytest .mark .vcr ()
383379async def test_tool_returning_text_resource (allow_model_requests : None , agent : Agent ):
384380 async with agent :
385381 result = await agent .run ('Get me the product name' )
@@ -446,7 +442,6 @@ async def test_tool_returning_text_resource(allow_model_requests: None, agent: A
446442 )
447443
448444
449- @pytest .mark .vcr ()
450445async def test_tool_returning_text_resource_link (allow_model_requests : None , agent : Agent ):
451446 async with agent :
452447 result = await agent .run ('Get me the product name via get_product_name_link' )
@@ -513,7 +508,6 @@ async def test_tool_returning_text_resource_link(allow_model_requests: None, age
513508 )
514509
515510
516- @pytest .mark .vcr ()
517511async def test_tool_returning_image_resource (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
518512 async with agent :
519513 result = await agent .run ('Get me the image resource' )
@@ -587,7 +581,6 @@ async def test_tool_returning_image_resource(allow_model_requests: None, agent:
587581 )
588582
589583
590- @pytest .mark .vcr ()
591584async def test_tool_returning_image_resource_link (
592585 allow_model_requests : None , agent : Agent , image_content : BinaryContent
593586):
@@ -663,7 +656,6 @@ async def test_tool_returning_image_resource_link(
663656 )
664657
665658
666- @pytest .mark .vcr ()
667659async def test_tool_returning_audio_resource (
668660 allow_model_requests : None , agent : Agent , audio_content : BinaryContent , gemini_api_key : str
669661):
@@ -712,7 +704,6 @@ async def test_tool_returning_audio_resource(
712704 )
713705
714706
715- @pytest .mark .vcr ()
716707async def test_tool_returning_audio_resource_link (
717708 allow_model_requests : None , agent : Agent , audio_content : BinaryContent , gemini_api_key : str
718709):
@@ -771,7 +762,6 @@ async def test_tool_returning_audio_resource_link(
771762 )
772763
773764
774- @pytest .mark .vcr ()
775765async def test_tool_returning_image (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
776766 async with agent :
777767 result = await agent .run ('Get me an image' )
@@ -845,7 +835,6 @@ async def test_tool_returning_image(allow_model_requests: None, agent: Agent, im
845835 )
846836
847837
848- @pytest .mark .vcr ()
849838async def test_tool_returning_dict (allow_model_requests : None , agent : Agent ):
850839 async with agent :
851840 result = await agent .run ('Get me a dict, respond on one line' )
@@ -906,7 +895,6 @@ async def test_tool_returning_dict(allow_model_requests: None, agent: Agent):
906895 )
907896
908897
909- @pytest .mark .vcr ()
910898async def test_tool_returning_error (allow_model_requests : None , agent : Agent ):
911899 async with agent :
912900 result = await agent .run ('Get me an error, pass False as a value, unless the tool tells you otherwise' )
@@ -1011,7 +999,6 @@ async def test_tool_returning_error(allow_model_requests: None, agent: Agent):
1011999 )
10121000
10131001
1014- @pytest .mark .vcr ()
10151002async def test_tool_returning_none (allow_model_requests : None , agent : Agent ):
10161003 async with agent :
10171004 result = await agent .run ('Call the none tool and say Hello' )
@@ -1072,7 +1059,6 @@ async def test_tool_returning_none(allow_model_requests: None, agent: Agent):
10721059 )
10731060
10741061
1075- @pytest .mark .vcr ()
10761062async def test_tool_returning_multiple_items (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
10771063 async with agent :
10781064 result = await agent .run ('Get me multiple items and summarize in one sentence' )
0 commit comments