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:
parent
7f7223e0ac
commit
a18bfd9781
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue