Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
34461d48
Commit
34461d48
authored
Jul 13, 2024
by
quyuan
Browse files
add ci
parent
080fe473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tests/test_cli/test_cli.py
tests/test_cli/test_cli.py
+4
-1
No files found.
tests/test_cli/test_cli.py
View file @
34461d48
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment