litellm/tests/test_litellm_proxy_responses_config.py
devin-ai-integration[bot] d5173e3d70
test: move 76 live top-level tests to offline unit and integration coverage (#45352)
* test: move 76 live top-level tests to offline unit and integration coverage

* test: keep the mock-param opt-in guard valid once the top-level senders are gone

* test: address review on offline replacements

* docs(test): drop the deleted harness test file from the harness check command

* test: make the key rebind, team member delete and routes integration tests exercise the legacy paths

* test: make fallback, rpm and spend integration contracts deterministic and clean up their rows, assert the rpm limit in usage-based routing

* test: expect the no-deployments error at the rpm limit and cover the strategy check without pre-call checks

* test: hand member cleanups to the scenario instead of growing a budget list, flatten callback kinds

* test: scope the admin health check to the test's own deployment

---------

Co-authored-by: yuneng <yuneng@berri.ai>
2026-10-08 10:33:35 -07:00

21 lines
655 B
Python

"""
Unit test for LiteLLM Proxy Responses API configuration.
"""
from litellm.types.utils import LlmProviders
def test_litellm_proxy_responses_api_config_inherits_from_openai():
"""Test that LiteLLMProxyResponsesAPIConfig extends OpenAI config properly"""
from litellm.llms.litellm_proxy.responses.transformation import (
LiteLLMProxyResponsesAPIConfig,
)
from litellm.llms.openai.responses.transformation import (
OpenAIResponsesAPIConfig,
)
config = LiteLLMProxyResponsesAPIConfig()
assert isinstance(config, OpenAIResponsesAPIConfig)
assert config.custom_llm_provider == LlmProviders.LITELLM_PROXY