Przeglądaj źródła

update test case

dt-yy 7 miesięcy temu
rodzic
commit
a1fe370270
1 zmienionych plików z 1 dodań i 20 usunięć
  1. 1 20
      tests/test_cli/test_cli_sdk.py

+ 1 - 20
tests/test_cli/test_cli_sdk.py

@@ -323,25 +323,6 @@ class TestCli:
         logging.info(cmd)
         os.system(cmd)
     
-    @pytest.mark.skip(reason="st废弃")
-    @pytest.mark.P1
-    def test_local_magic_pdf_open_st_table(self):
-        """magic pdf cli open st table."""
-        time.sleep(2)
-        #pre_cmd = "cp ~/magic_pdf_st.json ~/magic-pdf.json"
-        value = {
-        "model": "struct_eqtable",
-        "enable": True,
-        "max_time": 400
-        }   
-        common.update_config_file(magic_pdf_config, "table-config", value)
-        pdf_path = os.path.join(pdf_dev_path, "pdf", "test_rearch_report.pdf")
-        common.delete_file(pdf_res_path)
-        cli_cmd = "magic-pdf -p %s -o %s" % (pdf_path, pdf_res_path)
-        os.system(cli_cmd)
-        res = common.check_html_table_exists(os.path.join(pdf_res_path, "test_rearch_report", "auto", "test_rearch_report.md"))
-        assert res is True
-  
     @pytest.mark.P1
     def test_local_magic_pdf_open_rapidai_table(self):
         """magic pdf cli open rapid ai table."""
@@ -403,7 +384,7 @@ class TestCli:
         #os.system(pre_cmd)
         value = {
         "model": "rapid_table",
-        "enable": False,
+        "enable": True,
         "sub_model": "slanet_plus",
         "max_time": 400
         }