From e5de1ecd92e251f29321ee80d5cab73017fd5054 Mon Sep 17 00:00:00 2001 From: Chesars Date: Sun, 22 Mar 2026 11:18:50 -0300 Subject: [PATCH] chore: remove unused _parse_sse_events helper in test --- ...al_pass_through_adapters_transformation.py | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py index 3d1a45c6ca..18febf2d1b 100644 --- a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py +++ b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py @@ -2123,26 +2123,6 @@ class TestAnthropicStreamWrapperToolArgs: containing input_json_delta. This verifies the args are preserved. """ - def _parse_sse_events(self, raw_bytes_list): - """Parse SSE bytes from the stream wrapper into event dicts.""" - import json - - events = [] - for raw in raw_bytes_list: - if not isinstance(raw, bytes): - continue - for line in raw.decode("utf-8").strip().split("\n"): - line = line.strip() - if line.startswith("data:"): - line = line[5:].strip() - if not line or line == "[DONE]" or line.startswith("event:"): - continue - try: - events.append(json.loads(line)) - except json.JSONDecodeError: - continue - return events - def _build_chunks(self): """Build mock OpenAI-format chunks simulating Gemini tool call response.""" # Chunk 1: text content