mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Merge pull request #21257 from BerriAI/refactor/remove-redundant-cache-flushes
refactor(test): remove redundant cache flush from test_openai_env_base
This commit is contained in:
commit
9fb6537607
1 changed files with 0 additions and 6 deletions
|
|
@ -497,12 +497,6 @@ async def test_openai_env_base(
|
|||
respx_mock: respx.MockRouter, env_base, openai_api_response, monkeypatch
|
||||
):
|
||||
"This tests OpenAI env variables are honored, including legacy OPENAI_API_BASE"
|
||||
# Clear cache to ensure no cached clients from previous tests interfere
|
||||
# This prevents cache pollution where a previous test cached a client with
|
||||
# aiohttp transport, which would bypass respx mocks
|
||||
if hasattr(litellm, "in_memory_llm_clients_cache"):
|
||||
litellm.in_memory_llm_clients_cache.flush_cache()
|
||||
|
||||
# Ensure aiohttp transport is disabled to use httpx which respx can mock
|
||||
litellm.disable_aiohttp_transport = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue