From c062992806e003df46ad5a6f447c8e90070d8f02 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Fri, 26 Sep 2025 23:03:38 -0400 Subject: [PATCH] test: mark tests requiring external APIs to skip in CI --- tests/test_llm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_llm.py b/tests/test_llm.py index 065687565..4d985fb4a 100644 --- a/tests/test_llm.py +++ b/tests/test_llm.py @@ -260,6 +260,7 @@ def test_validate_call_params_no_response_format(): @pytest.mark.vcr(filter_headers=["authorization"], filter_query_parameters=["key"]) +@pytest.mark.requires_local_services @pytest.mark.parametrize( "model", [ @@ -569,6 +570,7 @@ def mock_emit() -> MagicMock: @pytest.mark.vcr(filter_headers=["authorization"]) +@pytest.mark.requires_local_services def test_handle_streaming_tool_calls(get_weather_tool_schema, mock_emit): llm = LLM(model="openai/gpt-4o", stream=True) response = llm.call( @@ -643,6 +645,7 @@ def test_handle_streaming_tool_calls_no_available_functions( @pytest.mark.vcr(filter_headers=["authorization"]) +@pytest.mark.requires_local_services def test_handle_streaming_tool_calls_no_tools(mock_emit): llm = LLM(model="openai/gpt-4o", stream=True) response = llm.call( @@ -674,6 +677,7 @@ def test_llm_call_when_stop_is_unsupported(caplog): @pytest.mark.vcr(filter_headers=["authorization"]) +@pytest.mark.requires_local_services def test_llm_call_when_stop_is_unsupported_when_additional_drop_params_is_provided( caplog, ):