Skip to content

Commit 94fcdbb

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: remove unit test with wrong assumption about claude thinking parts
PiperOrigin-RevId: 935001577
1 parent 7461863 commit 94fcdbb

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

tests/unittests/models/test_litellm.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5094,17 +5094,6 @@ def test_convert_reasoning_value_to_parts_skips_redacted_blocks():
50945094
assert parts[0].text == "visible"
50955095

50965096

5097-
def test_convert_reasoning_value_to_parts_skips_empty_thinking():
5098-
"""Blocks with empty thinking text are excluded."""
5099-
thinking_blocks = [
5100-
{"type": "thinking", "thinking": "", "signature": "sig1"},
5101-
{"type": "thinking", "thinking": "real thought", "signature": "sig2"},
5102-
]
5103-
parts = _convert_reasoning_value_to_parts(thinking_blocks)
5104-
assert len(parts) == 1
5105-
assert parts[0].text == "real thought"
5106-
5107-
51085097
def test_convert_reasoning_value_to_parts_flat_string_unchanged():
51095098
"""Flat string reasoning still produces thought parts without signature."""
51105099
parts = _convert_reasoning_value_to_parts("simple reasoning text")

0 commit comments

Comments
 (0)