test(bedrock): import litellm directly instead of patching sys.path

pytest's rootdir already makes litellm importable, and TQ003 counts the
insert against the test-quality budget.
This commit is contained in:
谭成 2026-08-22 15:57:56 +08:00
parent fe8b1aa17a
commit d2df7c65d6

View file

@ -1,12 +1,5 @@
import os
import sys
import pytest
# Ensure the project root is on the import path so `litellm` can be imported when
# tests are executed from any working directory.
sys.path.insert(0, os.path.abspath("../../../../../.."))
from litellm.llms.bedrock.chat.invoke_transformations.amazon_deepseek_transformation import (
AmazonDeepseekR1ResponseIterator,
)