mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-02 07:13:02 +00:00
test(sdk): keep EOF assertion compatible with pytest lint
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
8370245ef7
commit
0ea69d22a5
1 changed files with 1 additions and 2 deletions
|
|
@ -145,8 +145,7 @@ def test_sync_stream_cut_before_the_json_tool_block_closes_still_yields_the_whol
|
|||
fragments: Final[list[str]] = []
|
||||
if cut:
|
||||
with pytest.raises(MidStreamFallbackError, match="Stream ended before a finish_reason was received"):
|
||||
for chunk in response:
|
||||
fragments.append(str(chunk.choices[0].delta.content or ""))
|
||||
fragments.extend(str(chunk.choices[0].delta.content or "") for chunk in response)
|
||||
else:
|
||||
fragments.extend(str(chunk.choices[0].delta.content or "") for chunk in response)
|
||||
text: Final = "".join(fragments)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue