From a18bfd978105e0d06f3edb4f4a5b9704a88c2f48 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Fri, 4 Sep 2026 12:13:42 +0300 Subject: [PATCH] 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. --- tests/test_converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_converters.py b/tests/test_converters.py index 60b87922..cf236d57 100644 --- a/tests/test_converters.py +++ b/tests/test_converters.py @@ -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)