def test_parse_partial_list_items_complete_objects():
    """Test parsing complete objects from list content."""
    list_content = '{"setup": "Why did the chicken cross the road?", "punchline": "To get to the other side!"}, {"setup": "Second joke", "punchline": "Second punchline"}'

    result = _parse_partial_list_items(list_content, "jokes", Show)

    assert isinstance(result, list)
    assert len(result) == 2
    assert result[0]["setup"] == "Why did the chicken cross the road?"
    assert result[0]["punchline"] == "To get to the other side!"
    assert result[1]["setup"] == "Second joke"
    assert result[1]["punchline"] == "Second punchline"
Test parsing complete objects from list content.
llama-index-core/tests/program/test_streaming_utils.py