From 10f3fd678b8b1ac170ee1e7ac17af6e083fd24ce Mon Sep 17 00:00:00 2001 From: Adarsh Divakaran Date: Fri, 14 Aug 2026 15:45:13 +0530 Subject: [PATCH] test(search): move SerpApi tests into provider CI --- .../llms/serpapi}/test_serpapi_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename tests/{search_tests => test_litellm/llms/serpapi}/test_serpapi_search.py (99%) diff --git a/tests/search_tests/test_serpapi_search.py b/tests/test_litellm/llms/serpapi/test_serpapi_search.py similarity index 99% rename from tests/search_tests/test_serpapi_search.py rename to tests/test_litellm/llms/serpapi/test_serpapi_search.py index aa06fce80c4..cba8e12832d 100644 --- a/tests/search_tests/test_serpapi_search.py +++ b/tests/test_litellm/llms/serpapi/test_serpapi_search.py @@ -24,7 +24,7 @@ async def test_serpapi_asearch_uses_get_handler( monkeypatch.delenv("SERPAPI_API_KEY", raising=False) monkeypatch.setenv("SERPAPI_KEY", "test-api-key") local_model_cost = TypeAdapter(dict[str, object]).validate_json( - (Path(__file__).parents[2] / "model_prices_and_context_window.json").read_text() + (Path(__file__).parents[4] / "model_prices_and_context_window.json").read_text() ) monkeypatch.setattr(litellm, "model_cost", local_model_cost) mock_response = httpx.Response( @@ -393,7 +393,7 @@ def test_serpapi_unrecognized_response_shape_raises() -> None: def test_serpapi_search_cost_metadata(monkeypatch: pytest.MonkeyPatch) -> None: local_model_cost = TypeAdapter(dict[str, object]).validate_json( - (Path(__file__).parents[2] / "model_prices_and_context_window.json").read_text() + (Path(__file__).parents[4] / "model_prices_and_context_window.json").read_text() ) monkeypatch.setattr(litellm, "model_cost", local_model_cost) model_info = get_model_info(