test(anthropic-adapter): drop unnecessary sys.path.insert

pytest's rootdir handling and the installed litellm package already
make the imports resolve, so the sys.path.insert was a no-op that
tripped the TQ003 test-quality gate. Removes the associated os/sys
imports to keep the file tidy.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-09-13 21:19:47 +00:00
parent 0b847b1b10
commit 9ab4d4fb15
No known key found for this signature in database

View file

@ -15,15 +15,11 @@ Anthropic ``error`` event so the stream stays valid and the client can retry.
"""
import json
import os
import sys
from typing import List, Optional
from unittest.mock import MagicMock
import pytest
sys.path.insert(0, os.path.abspath("../../../../.."))
from litellm.exceptions import MidStreamFallbackError
from litellm.llms.anthropic.experimental_pass_through.adapters.streaming_iterator import (
AnthropicStreamWrapper,