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
9236ee50
Commit
9236ee50
authored
Nov 18, 2024
by
quyuan
Browse files
update test case
parent
d8996b65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tests/test_cli/test_cli_sdk.py
tests/test_cli/test_cli_sdk.py
+2
-3
No files found.
tests/test_cli/test_cli_sdk.py
View file @
9236ee50
...
@@ -392,7 +392,7 @@ class TestCli:
...
@@ -392,7 +392,7 @@ class TestCli:
#os.system(pre_cmd)
#os.system(pre_cmd)
value
=
{
value
=
{
"model"
:
"tablemaster"
,
"model"
:
"tablemaster"
,
"enable"
:
Tru
e
,
"enable"
:
Fals
e
,
"max_time"
:
400
"max_time"
:
400
}
}
common
.
update_config_file
(
magic_pdf_config
,
"table-config"
,
value
)
common
.
update_config_file
(
magic_pdf_config
,
"table-config"
,
value
)
...
@@ -401,8 +401,7 @@ class TestCli:
...
@@ -401,8 +401,7 @@ class TestCli:
common
.
delete_file
(
pdf_res_path
)
common
.
delete_file
(
pdf_res_path
)
cli_cmd
=
"magic-pdf -p %s -o %s"
%
(
pdf_path
,
pdf_res_path
)
cli_cmd
=
"magic-pdf -p %s -o %s"
%
(
pdf_path
,
pdf_res_path
)
os
.
system
(
cli_cmd
)
os
.
system
(
cli_cmd
)
res
=
common
.
check_html_table_exists
(
os
.
path
.
join
(
pdf_res_path
,
"test_rearch_report"
,
"auto"
,
"test_rearch_report.md"
))
common
.
cli_count_folders_and_check_contents
(
os
.
path
.
join
(
pdf_res_path
,
"test_rearch_report"
,
"auto"
))
assert
res
is
True
@
pytest
.
mark
.
P1
@
pytest
.
mark
.
P1
...
...
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