haiku.rag/tests/cassettes/test_client
Yiorgis Gozadinos f96a428ef1
Fix defects found reviewing the coverage work
check_source_accessible narrowed its handler to ValueError, but Path.exists
re-raises errno values outside its ignored set (EACCES, ENAMETOOLONG). Those
were swallowed before and now escaped into the rebuild sweep the guard exists
to protect. Catch OSError too.

Restore the arity guard in _common_path_prefix: without it an empty list
raises from min() and a single label yields a prefix covering the whole path.

Two tests would have hung rather than failed on regression (the vacuum skip
and the protected-wait cancellation); both are now bounded. The import
vacuum test raced against the done-callback that discards the task, and now
spies on the call instead, with a negative control.

Replace assertions that could not fail: blank-query search against an empty
corpus, a batch flush counted against an empty table, a picture description
asserting its own input state, and an FS scheme check with nothing on disk to
resolve. The get_model matrix asserted only the returned type across 26
cases and now pins the per-provider settings. The three batching tests now
count flushes, which revealed embed-only writes through chunks_table.add
rather than _flush_rebuild_batch.
2026-07-27 10:44:32 +03:00
..
test_client_ask.yaml replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
test_client_async_context_manager.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_directory.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_file_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_source.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_source_uri_override_dedupes.yaml Allow uri override on create_document_from_source 2026-04-30 16:36:35 +03:00
test_client_create_document_from_source_with_uri_override.yaml Allow uri override on create_document_from_source 2026-04-30 16:36:35 +03:00
test_client_create_document_from_url.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_from_url_with_different_content_types.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_document_with_html_format.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_create_update_no_op_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_document_crud.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_expand_context.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_file_update_stores_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_import_document_stores_docling_data.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_import_document_with_custom_chunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_metadata_content_type_and_md5.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_search.yaml Stabilize test_client_search ranking assertion 2026-05-14 14:37:27 +03:00
test_client_update_document.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_content_docling_mutually_exclusive.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_docling_with_chunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_stores_docling_json.yaml Search results now show rank position instead of raw scores. Consolidate cassettes 2026-01-21 14:54:15 +02:00
test_client_update_document_with_custom_chunks_no_docling_json.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_document_with_docling_rechunks.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_update_title_noop_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_url_create_update_no_op_behavior.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_no_bounding_boxes.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_returns_list.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_client_visualize_chunk_with_pdf.yaml Disable ocr in tests previously marked as integration 2026-01-12 16:19:25 +02:00
test_import_document_embeds_chunks_without_embeddings.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_import_documents_schedules_vacuum_per_config[False].yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_import_documents_schedules_vacuum_per_config[True].yaml Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
test_reingesting_a_source_applies_an_explicit_title.yaml Reach and enforce 100% coverage 2026-07-26 20:11:02 +03:00
test_sql_injection_is_blocked_with_escaping.yaml Security fixes for RLM. Fix type() builtin, AST validation for dict key access, sql injection 2026-02-06 12:07:19 +01:00
test_update_document_embeds_chunks_without_embeddings.yaml Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00