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
8a8d5436
Commit
8a8d5436
authored
Jul 13, 2024
by
quyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ci
parent
7a4c8d2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
common.py
tests/test_cli/lib/common.py
+1
-1
test_cli.py
tests/test_cli/test_cli.py
+3
-1
No files found.
tests/test_cli/lib/common.py
View file @
8a8d5436
...
@@ -17,7 +17,7 @@ def count_folders_and_check_contents(directory):
...
@@ -17,7 +17,7 @@ def count_folders_and_check_contents(directory):
folder_count
=
folder_count
+
1
folder_count
=
folder_count
+
1
assert
os
.
listdir
(
folder_path
)
is
not
None
assert
os
.
listdir
(
folder_path
)
is
not
None
print
(
folder_count
)
print
(
folder_count
)
assert
folder_count
==
14
assert
folder_count
>
0
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
tests/test_cli/test_cli.py
View file @
8a8d5436
...
@@ -5,6 +5,8 @@ import os
...
@@ -5,6 +5,8 @@ import os
import
json
import
json
from
magic_pdf.pipe.UNIPipe
import
UNIPipe
from
magic_pdf.pipe.UNIPipe
import
UNIPipe
from
magic_pdf.rw.DiskReaderWriter
import
DiskReaderWriter
from
magic_pdf.rw.DiskReaderWriter
import
DiskReaderWriter
from
lib
import
common
pdf_res_path
=
conf
.
conf
[
"pdf_res_path"
]
pdf_res_path
=
conf
.
conf
[
"pdf_res_path"
]
code_path
=
conf
.
conf
[
"code_path"
]
code_path
=
conf
.
conf
[
"code_path"
]
pdf_dev_path
=
conf
.
conf
[
"pdf_dev_path"
]
pdf_dev_path
=
conf
.
conf
[
"pdf_dev_path"
]
...
@@ -39,7 +41,7 @@ class TestCli:
...
@@ -39,7 +41,7 @@ class TestCli:
res_path
=
os
.
path
.
join
(
dir_path
,
f
"{demo_name}.md"
)
res_path
=
os
.
path
.
join
(
dir_path
,
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
)
f
.
write
(
md_content
)
common
.
count_folders_and_check_contents
(
res_path
)
# def test_pdf_specify_jsonl(self):
# def test_pdf_specify_jsonl(self):
# """
# """
...
...
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