mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
test: use local model cost map in import-isolation subprocess
This commit is contained in:
parent
f0a2a23127
commit
b8e11a75fa
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Final
|
||||
|
|
@ -78,6 +79,9 @@ def test_importing_proxy_hooks_does_not_mutate_litellm_callbacks():
|
|||
"assert len(litellm.callbacks) == 0, f'mutated: {litellm.callbacks}'"
|
||||
)
|
||||
result: Final = subprocess.run(
|
||||
[sys.executable, "-c", script], capture_output=True, text=True
|
||||
[sys.executable, "-c", script],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
env={**os.environ, "LITELLM_LOCAL_MODEL_COST_MAP": "True"},
|
||||
)
|
||||
assert result.returncode == 0, f"stdout: {result.stdout}\nstderr: {result.stderr}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue