haiku.rag/tests/cassettes/test_document_tools
Yiorgis Gozadinos f6acb65e95
Reach and enforce 100% coverage
Cover the remaining paths in the client, context, downloads, title
generation, document tools and store models, and add fail_under=100 so
uncovered lines fail CI.

Six lines that no test can reach get a pragma with its reason: the docling
import guard, the nameless PDF attachment, the FS symlink OSError guard that
resolve(strict=False) absorbs, the docling bbox and LanceDB document-id
shape guards, the tag-retention branch vacuum makes unreachable, and Monty's
Rust-thread print callback.

Fix test_find_config_file_user_config, which wrote its config into the cwd it
had chdir'd to, so the cwd branch answered first and the user-directory
lookup it names was never exercised.
2026-07-26 20:11:02 +03:00
..
TestDocumentToolExecution.test_get_document_by_title.yaml
TestDocumentToolExecution.test_get_document_by_uri.yaml
TestDocumentToolExecution.test_get_document_not_found.yaml
TestDocumentToolExecution.test_list_documents_pagination.yaml
TestDocumentToolExecution.test_list_documents_returns_paginated_results.yaml
TestDocumentToolExecution.test_list_documents_with_base_filter.yaml
TestFindDocument.test_find_document_partial_title.yaml
TestFindDocument.test_find_document_partial_uri.yaml
TestSummarizeDocumentTool.test_summarize_document_not_found.yaml
TestSummarizeDocumentTool.test_summarize_document_returns_model_summary.yaml Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00