@@ -178,7 +178,6 @@ def test_sse_server_conflicting_timeout_params():
178
178
)
179
179
180
180
181
- @pytest .mark .vcr ()
182
181
async def test_agent_with_stdio_server (allow_model_requests : None , agent : Agent ):
183
182
async with agent :
184
183
result = await agent .run ('What is 0 degrees Celsius in Fahrenheit?' )
@@ -280,7 +279,6 @@ def get_none() -> None: # pragma: no cover
280
279
await agent .run ('No conflict' )
281
280
282
281
283
- @pytest .mark .vcr ()
284
282
async def test_agent_with_server_not_running (agent : Agent , allow_model_requests : None ):
285
283
result = await agent .run ('What is 0 degrees Celsius in Fahrenheit?' )
286
284
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]):
306
304
assert result == snapshot ('info' )
307
305
308
306
309
- @pytest .mark .vcr ()
310
307
async def test_tool_returning_str (allow_model_requests : None , agent : Agent ):
311
308
async with agent :
312
309
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):
379
376
)
380
377
381
378
382
- @pytest .mark .vcr ()
383
379
async def test_tool_returning_text_resource (allow_model_requests : None , agent : Agent ):
384
380
async with agent :
385
381
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
446
442
)
447
443
448
444
449
- @pytest .mark .vcr ()
450
445
async def test_tool_returning_text_resource_link (allow_model_requests : None , agent : Agent ):
451
446
async with agent :
452
447
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
513
508
)
514
509
515
510
516
- @pytest .mark .vcr ()
517
511
async def test_tool_returning_image_resource (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
518
512
async with agent :
519
513
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:
587
581
)
588
582
589
583
590
- @pytest .mark .vcr ()
591
584
async def test_tool_returning_image_resource_link (
592
585
allow_model_requests : None , agent : Agent , image_content : BinaryContent
593
586
):
@@ -663,7 +656,6 @@ async def test_tool_returning_image_resource_link(
663
656
)
664
657
665
658
666
- @pytest .mark .vcr ()
667
659
async def test_tool_returning_audio_resource (
668
660
allow_model_requests : None , agent : Agent , audio_content : BinaryContent , gemini_api_key : str
669
661
):
@@ -712,7 +704,6 @@ async def test_tool_returning_audio_resource(
712
704
)
713
705
714
706
715
- @pytest .mark .vcr ()
716
707
async def test_tool_returning_audio_resource_link (
717
708
allow_model_requests : None , agent : Agent , audio_content : BinaryContent , gemini_api_key : str
718
709
):
@@ -771,7 +762,6 @@ async def test_tool_returning_audio_resource_link(
771
762
)
772
763
773
764
774
- @pytest .mark .vcr ()
775
765
async def test_tool_returning_image (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
776
766
async with agent :
777
767
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
845
835
)
846
836
847
837
848
- @pytest .mark .vcr ()
849
838
async def test_tool_returning_dict (allow_model_requests : None , agent : Agent ):
850
839
async with agent :
851
840
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):
906
895
)
907
896
908
897
909
- @pytest .mark .vcr ()
910
898
async def test_tool_returning_error (allow_model_requests : None , agent : Agent ):
911
899
async with agent :
912
900
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):
1011
999
)
1012
1000
1013
1001
1014
- @pytest .mark .vcr ()
1015
1002
async def test_tool_returning_none (allow_model_requests : None , agent : Agent ):
1016
1003
async with agent :
1017
1004
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):
1072
1059
)
1073
1060
1074
1061
1075
- @pytest .mark .vcr ()
1076
1062
async def test_tool_returning_multiple_items (allow_model_requests : None , agent : Agent , image_content : BinaryContent ):
1077
1063
async with agent :
1078
1064
result = await agent .run ('Get me multiple items and summarize in one sentence' )
0 commit comments