From 080fe473a509d3605b8b35b6a0971bd6562f88be Mon Sep 17 00:00:00 2001 From: quyuan Date: Sat, 13 Jul 2024 17:37:33 +0800 Subject: [PATCH] add ci --- tests/test_cli/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py index 4812cf3c..d42c3898 100644 --- a/tests/test_cli/test_cli.py +++ b/tests/test_cli/test_cli.py @@ -34,7 +34,7 @@ class TestCli: 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") - with open(res_path, "w", encoding="utf-8") as f: + with open(res_path, "w+", encoding="utf-8") as f: f.write(md_content)