Commit 9236ee50 authored by quyuan's avatar quyuan
Browse files

update test case

parent d8996b65
...@@ -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": True, "enable": False,
"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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment