diff --git a/haiku_rag_slim/haiku/rag/chunkers/docling_local.py b/haiku_rag_slim/haiku/rag/chunkers/docling_local.py index 42bfaffe..9ab36b88 100644 --- a/haiku_rag_slim/haiku/rag/chunkers/docling_local.py +++ b/haiku_rag_slim/haiku/rag/chunkers/docling_local.py @@ -177,7 +177,4 @@ class DoclingLocalChunker(DocumentChunker): Returns: List of Chunk containing content and structured metadata. """ - if document is None: - return [] - return await asyncio.to_thread(self._chunk_sync, document) diff --git a/tests/test_chunker.py b/tests/test_chunker.py index 39003d0a..e59681a0 100644 --- a/tests/test_chunker.py +++ b/tests/test_chunker.py @@ -55,13 +55,6 @@ async def test_local_chunker(qa_corpus: list[dict[str, str]]): assert abs(total_tokens - original_tokens) <= original_tokens * 0.1 -@pytest.mark.asyncio -async def test_local_chunker_none_document(): - """Test DoclingLocalChunker returns empty list for None document.""" - chunker = DoclingLocalChunker() - assert await chunker.chunk(None) == [] - - @pytest.mark.asyncio async def test_local_chunker_custom_config(): """Test DoclingLocalChunker with custom configuration."""