From 503fcc6339b4d8b5ae47fd040038a134ea25e43b Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Thu, 1 Jan 2026 15:06:39 -0800 Subject: [PATCH] Fix failing tests: add cost_breakdown to ignored keys and fix MCP route path --- .../proxy/_experimental/mcp_server/test_rest_endpoints.py | 2 +- .../proxy/spend_tracking/test_spend_management_endpoints.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py index d9aba73de8f..0c6d0921952 100644 --- a/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py +++ b/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py @@ -82,7 +82,7 @@ async def test_execute_with_mcp_client_redacts_stack_trace(monkeypatch): def test_test_connection_requires_auth_dependency(): - route = _get_route("/test/connection", "POST") + route = _get_route("/mcp-rest/test/connection", "POST") assert _route_has_dependency(route, user_api_key_auth) diff --git a/tests/test_litellm/proxy/spend_tracking/test_spend_management_endpoints.py b/tests/test_litellm/proxy/spend_tracking/test_spend_management_endpoints.py index 5e3652c6d9d..56bba39e6c3 100644 --- a/tests/test_litellm/proxy/spend_tracking/test_spend_management_endpoints.py +++ b/tests/test_litellm/proxy/spend_tracking/test_spend_management_endpoints.py @@ -202,6 +202,7 @@ ignored_keys = [ "metadata.cold_storage_object_key", "metadata.additional_usage_values.prompt_tokens_details.cache_creation_tokens", "metadata.litellm_overhead_time_ms", + "metadata.cost_breakdown", ] MODEL_LIST = [