Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
34461d48
Commit
34461d48
authored
Jul 13, 2024
by
quyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ci
parent
080fe473
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
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