Anchor the doclaynet fixture path on the test file

test_split_and_merge_matches_single_pass resolved tests/data/doclaynet.pdf
relative to the working directory, so it failed with FileNotFoundError for
any invocation outside the repository root. conftest.py resolves the same
file as Path(__file__).parent / "data"; this was the only site that did not.
This commit is contained in:
Yiorgis Gozadinos 2026-09-04 12:13:42 +03:00
parent 7f7223e0ac
commit a18bfd9781
No known key found for this signature in database

View file

@ -878,7 +878,7 @@ class TestDoclingLocalConverter:
"""
from haiku.rag.converters.pdf_split import convert_pdf_with_splitting
pdf_path = Path("tests/data/doclaynet.pdf")
pdf_path = Path(__file__).parent / "data" / "doclaynet.pdf"
config.processing.conversion_options.do_ocr = False
converter = DoclingLocalConverter(config)