def test_sync_parsing_no_errors(chunk_size, window_size, llm_workers):
    """
    Integration test to ensure the sync parsing path (get_nodes_from_documents)
    completes without errors under various parameters.
    """
    # Patch the blocking LLM.chat so it returns instantly
    with patch.object(MockLLM, "chat", return_value="ctx"):
        llm = MockLLM()
        parser = SlideNodeParser.from_defaults(
            llm=llm,
            chunk_size=chunk_size,
            window_size=window_size,
            llm_workers=llm_workers,
        )

        # Three sample documents with multiple sentences
        doc1 = Document(text="This is the first document. It has some sentences.")
        doc2 = Document(text="This is the second document. Different content.")
        doc3 = Document(text="And this is the third one. More text here.")

        # Should run without raising, regardless of chunk_size/window_size/llm_workers
        nodes = parser.get_nodes_from_documents([doc1, doc2, doc3])

        # Basic sanity checks
        assert isinstance(nodes, list)
        # Every node must have the local_context metadata set
        assert all("local_context" in node.metadata for node in nodes)

    Integration test to ensure the sync parsing path (get_nodes_from_documents)
    completes without errors under various parameters.
    
llama-index-integrations/node_parser/llama-index-node-parser-slide/tests/test_node_parser_slide.py