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 <noreply@anthropic.com>
This commit is contained in:
Chris Hunter 2026-04-27 16:12:43 +02:00
parent 8980b77d4d
commit 27e7131c84

View file

@ -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"""