Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

add ci

quyuan34461d486ef7
diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py
index d42c3898..1b69f705 100644
--- a/tests/test_cli/test_cli.py
+++ b/tests/test_cli/test_cli.py
@@ -33,7 +33,10 @@ class TestCli:
pipe.pipe_classify()
pipe.pipe_parse()
md_content = pipe.pipe_mk_markdown(image_dir, drop_mode="none")
- res_path = os.path.join(pdf_dev_path, "mineru", f"{demo_name}.md")
+ dir_path = os.path.join(pdf_dev_path, "mineru")
+ if not os.path.exists(dir_path):
+ os.makedirs(dir_path, exist_ok=True)
+ res_path = os.path.join(dir_path, f"{demo_name}.md")
with open(res_path, "w+", encoding="utf-8") as f:
f.write(md_content)