mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
test(azure): import subprocess and sys inside the env var regression test
The module import block now matches the merge base again, so the branch merges cleanly onto the default branch, which dropped the sys.path shim and its sys import. The subprocess test still needs both modules, so it imports them locally.
This commit is contained in:
parent
a0f2fbbec2
commit
422e7e68f2
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import traceback
|
||||
from typing import Callable, Optional
|
||||
|
|
@ -446,6 +445,9 @@ def test_initialize_honors_explicit_max_retries(setup_mocks, configured, expecte
|
|||
|
||||
|
||||
def test_default_max_retries_env_var_reaches_azure_sdk_client():
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
code = (
|
||||
"from litellm.llms.azure.common_utils import BaseAzureLLM\n"
|
||||
"client = BaseAzureLLM().get_azure_openai_client("
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue