From 27e7131c843b82f99cbf79d01a6ed8439ddc69f0 Mon Sep 17 00:00:00 2001 From: Chris Hunter Date: Mon, 27 Apr 2026 16:12:43 +0200 Subject: [PATCH] fix: restore missing imports after removing sys.path.insert When removing the fragile sys.path.insert, I accidentally removed the import statements as well. This caused import errors in CI. Restored the proper imports: - from unittest.mock import MagicMock, patch - import httpx - import pytest Co-Authored-By: Claude Sonnet 4.5 --- .../responses/test_openai_responses_cost_calculation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/openai/responses/test_openai_responses_cost_calculation.py b/tests/test_litellm/llms/openai/responses/test_openai_responses_cost_calculation.py index 21ec3017920..74f9ee2c660 100644 --- a/tests/test_litellm/llms/openai/responses/test_openai_responses_cost_calculation.py +++ b/tests/test_litellm/llms/openai/responses/test_openai_responses_cost_calculation.py @@ -2,6 +2,11 @@ Unit tests for Responses API cost calculation functionality. Tests the fix for issue #26475 - ensuring cost calculation works correctly across all 60+ providers inheriting from OpenAIResponsesAPIConfig. +""" +from unittest.mock import MagicMock, patch + +import httpx +import pytest from litellm.llms.openai.responses.transformation import OpenAIResponsesAPIConfig from litellm.types.llms.openai import ( @@ -11,7 +16,6 @@ from litellm.types.llms.openai import ( ) from litellm.types.utils import LlmProviders - class TestResponsesAPICostCalculation: """Test suite for Responses API cost calculation across transformation paths"""