File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -393,12 +393,12 @@ def test_streamed_text_stream_sync():
393393
394394 agent = Agent (m )
395395
396- with agent .run_stream_sync ('Hello' ) as result :
397- # typehint to test (via static typing) that the stream type is correctly inferred
398- chunks : list [str ] = [c for c in result .stream_text_sync ()]
399- # one chunk with `stream_text()` due to group_by_temporal
400- assert chunks == snapshot (['The cat sat on the mat.' ])
401- assert result .is_complete
396+ result = agent .run_stream_sync ('Hello' )
397+ # typehint to test (via static typing) that the stream type is correctly inferred
398+ chunks : list [str ] = [c for c in result .stream_text_sync ()]
399+ # one chunk with `stream_text()` due to group_by_temporal
400+ assert chunks == snapshot (['The cat sat on the mat.' ])
401+ assert result .is_complete
402402
403403 with agent .run_stream_sync ('Hello' ) as result :
404404 # typehint to test (via static typing) that the stream type is correctly inferred
You can’t perform that action at this time.
0 commit comments