From ab881885294a1f2d2443c2234d8b57f477d9ad8b Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Mon, 27 Jul 2026 13:17:05 +0300 Subject: [PATCH] Keep the lazy-read test off the embedder Rewriting the document through client.update_document re-chunks and re-embeds, so the test needed an embedding endpoint that CI does not have. Write the row through the repository instead, matching how the rest of the file avoids the embedder. --- tests/sandbox/test_sandbox_toc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sandbox/test_sandbox_toc.py b/tests/sandbox/test_sandbox_toc.py index e76fbc7b..25ae2a04 100644 --- a/tests/sandbox/test_sandbox_toc.py +++ b/tests/sandbox/test_sandbox_toc.py @@ -386,8 +386,12 @@ class TestVfsReadPaths: vfs = await sandbox._build_vfs() sandbox._loop = asyncio.get_running_loop() + # Rewrite via the repository rather than client.update_document: the + # latter re-chunks and re-embeds, which this file deliberately avoids + # so these tests need no embedding endpoint. async with HaikuRAG(temp_db_path, create=False) as client: - await client.update_document(doc_id, content="the rewritten body") + doc.content = "the rewritten body" + await client.document_repository.update(doc) content = await asyncio.to_thread( vfs.path_read_text, PurePosixPath(f"/documents/{doc_id}/content.txt")