mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
test(a2a): drop no-op sys.path.insert from new regression tests
pytest's rootdir handling and the installed package already make litellm importable; these were copy-paste no-ops that also made the guardrail_translation test's imports depend on the working directory it happens to run from. Resolves the TQ003 test-quality budget breach flagged in the lint job.
This commit is contained in:
parent
32c47acd67
commit
ced880fa62
3 changed files with 0 additions and 20 deletions
|
|
@ -1,11 +1,3 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
# Add litellm to sys.path
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
|
||||
)
|
||||
|
||||
from litellm.llms.a2a.chat.transformation import A2AConfig
|
||||
from litellm.llms.a2a.common_utils import extract_text_from_a2a_message
|
||||
|
||||
|
|
|
|||
|
|
@ -9,14 +9,10 @@ inspected `kind: "text"` parts, so guarded output checks were skipped for
|
|||
that content path.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from typing import Any, Literal, Optional
|
||||
|
||||
import pytest
|
||||
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../../..")))
|
||||
|
||||
from litellm.integrations.custom_guardrail import CustomGuardrail
|
||||
from litellm.llms.a2a.chat.guardrail_translation.handler import A2AGuardrailHandler
|
||||
from litellm.types.utils import GenericGuardrailAPIInputs
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
# Add litellm to sys.path
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
|
||||
)
|
||||
|
||||
from litellm.proxy.common_request_processing import ProxyBaseLLMRequestProcessing
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue