haiku.rag/tests
Yiorgis Gozadinos 3c7d746d57
Strengthen search tests, remove redundant title test, relocate primary label test
- Strengthen test_search_returns_search_result with chunk_id, document_id, and
  non-empty labels assertions
- Remove test_chunks_include_document_title (subsumed by strengthened test) and
  its cassette
- Rename test_chunks_include_document_info to
  test_search_chunk_includes_document_provenance; add document_title is None
  assertion for untitled documents
- Move test_search_result_get_primary_label from test_context_enhancement.py to
  test_search.py; rename, remove unnecessary @pytest.mark.vcr() decorator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 11:39:45 +02:00
..
agents Auto-detect structured output mode from model profile. Remove the structured_output config field from ModelConfig. 2026-03-04 14:51:09 +02:00
cassettes Strengthen search tests, remove redundant title test, relocate primary label test 2026-03-05 11:39:45 +02:00
chat Add tests 2026-02-20 16:36:51 +02:00
data Commit dataset for CI and github workflow 2025-12-26 19:30:26 +02:00
skills Expose skill state metadata as module-level API 2026-03-04 11:38:00 +02:00
store Fix out-of-memory in list_documents by adding column projection 2026-02-06 14:11:36 +01:00
tools Remove filter parameter from search and list_documents tools 2026-03-03 11:01:58 +02:00
utils Checkout version logic and datetime utils 2025-12-19 12:03:16 +02:00
__init__.py Use LLM-as-a-judge to test QA 2025-06-25 18:18:28 +03:00
conftest.py Additional fixes to remove type ignores 2026-01-19 16:00:18 +02:00
json_body_serializer.py Use cassette to record and reply llms in qa tests 2025-12-26 15:41:11 +02:00
test_chunk.py Search results now show rank position instead of raw scores. Consolidate cassettes 2026-01-21 14:54:15 +02:00
test_chunker.py Pass OCR options from conversion_options to docling-serve chunker 2026-02-03 11:34:46 +02:00
test_cli.py Mark with pragma no cover areas that are just wiring. Consolidate tests and bring coverage to 100% 2026-02-13 11:56:37 +02:00
test_client.py Make test_client_resolve_document not require embeddings 2026-02-06 12:07:20 +01:00
test_client_research.py Remove stale cassette, dead vcr_cassette_dir fixtures, and unnecessary VCR decorator 2026-03-05 11:36:22 +02:00
test_config.py Expand ~ in paths 2026-02-16 17:21:35 +02:00
test_context_enhancement.py Strengthen search tests, remove redundant title test, relocate primary label test 2026-03-05 11:39:45 +02:00
test_converters.py Add ocr_engine field to ConversionOptions 2026-01-20 13:41:43 +02:00
test_database_autocreate.py Fix out-of-memory in list_documents by adding column projection 2026-02-06 14:11:36 +01:00
test_document.py Fix out-of-memory in list_documents by adding column projection 2026-02-06 14:11:36 +01:00
test_download_models.py Remove stale cassette, dead vcr_cassette_dir fixtures, and unnecessary VCR decorator 2026-03-05 11:36:22 +02:00
test_embedder.py Remove stale cassette, dead vcr_cassette_dir fixtures, and unnecessary VCR decorator 2026-03-05 11:36:22 +02:00
test_embedder_config.py Extract run_qa_core() from ask closure in QA toolset. Remove redundant tests and cassettes for OpenAI and Anthropic QA tools, as they are now tested in the core function tests. 2026-02-11 11:38:34 +02:00
test_filter.py Record cassettes for embedder, ignore huggingface while recording 2025-12-29 13:23:53 +02:00
test_info.py Display on info pydantic-ai and docling-document schema version 2026-01-14 18:14:53 +02:00
test_inspector.py Fix tests 2026-01-19 13:47:20 +02:00
test_lancedb_connection.py Always upgrade database on access. Explicitly create db by running init or HaikuRAG(path, create=True) 2025-12-02 16:49:55 +02:00
test_logging.py Additional tests 2026-02-13 18:08:46 +02:00
test_mcp.py Refactor MCP to use proper models, test 2026-02-20 17:39:02 +02:00
test_monitor.py Clarify folder mounts in docker docs, check monitor paths exist in FileWatcher 2025-12-19 11:58:08 +02:00
test_reader.py async versions for convert_file() convert_text() 2025-11-26 17:46:25 +02:00
test_rebuild.py Additional fixes to remove type ignores 2026-01-19 16:00:18 +02:00
test_reranker.py Mark with pragma no cover areas that are just wiring. Consolidate tests and bring coverage to 100% 2026-02-13 11:56:37 +02:00
test_search.py Strengthen search tests, remove redundant title test, relocate primary label test 2026-03-05 11:39:45 +02:00
test_settings.py Add tests for settings validation and app operations 2026-01-15 10:46:29 +02:00
test_title_generation.py Simplify _resolve_title() 2026-02-26 10:56:28 +02:00
test_utils.py Auto-detect structured output mode from model profile. Remove the structured_output config field from ModelConfig. 2026-03-04 14:51:09 +02:00
test_versioning.py replace pyright with ty type checker 2026-01-19 15:50:14 +02:00