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:
STiFLeR7 2026-09-11 10:15:26 +05:30
parent 32c47acd67
commit ced880fa62
No known key found for this signature in database
3 changed files with 0 additions and 20 deletions

View file

@ -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

View file

@ -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

View file

@ -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