浏览代码

disable s3 test

myhloli 1 年之前
父节点
当前提交
46bcddf4f2
共有 1 个文件被更改,包括 25 次插入25 次删除
  1. 25 25
      tests/test_cli/test_cli.py

+ 25 - 25
tests/test_cli/test_cli.py

@@ -19,32 +19,32 @@ class TestCli:
         #common.count_folders_and_check_contents(pdf_res_path)      
    
 
-    def test_pdf_specify_jsonl(self):
-        """
-        输入jsonl, 默认方式解析
-        """
-        cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972'" % (code_path)
-        logging.info(cmd)
-        common.check_shell(cmd)
-        #common.count_folders_and_check_contents(pdf_res_path)
+    # def test_pdf_specify_jsonl(self):
+    #     """
+    #     输入jsonl, 默认方式解析
+    #     """
+    #     cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972'" % (code_path)
+    #     logging.info(cmd)
+    #     common.check_shell(cmd)
+    #     #common.count_folders_and_check_contents(pdf_res_path)
 
-    def test_pdf_specify_jsonl_txt(self):
-        """
-        输入jsonl, txt方式解析  
-        """
-        cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972' --method txt" % (code_path)
-        logging.info(cmd)
-        common.check_shell(cmd)
-        #common.count_folders_and_check_contents(pdf_res_path)
-    
-    def test_pdf_specify_jsonl_ocr(self):
-        """
-        输入jsonl, ocr方式解析
-        """
-        cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972' --method ocr" % (code_path)
-        logging.info(cmd)
-        common.check_shell(cmd)
-        #common.count_folders_and_check_contents(pdf_res_path)
+    # def test_pdf_specify_jsonl_txt(self):
+    #     """
+    #     输入jsonl, txt方式解析
+    #     """
+    #     cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972' --method txt" % (code_path)
+    #     logging.info(cmd)
+    #     common.check_shell(cmd)
+    #     #common.count_folders_and_check_contents(pdf_res_path)
+    #
+    # def test_pdf_specify_jsonl_ocr(self):
+    #     """
+    #     输入jsonl, ocr方式解析
+    #     """
+    #     cmd = "cd %s && export PYTHONPATH=. && python magic_pdf/cli/magicpdf.py  json-command --json 's3://llm-process-pperf/ebook_index_textbook_40k/中高考&竞赛知识点/part-663f1ef5e7c1-009416.jsonl?bytes=0,1133972' --method ocr" % (code_path)
+    #     logging.info(cmd)
+    #     common.check_shell(cmd)
+    #     #common.count_folders_and_check_contents(pdf_res_path)
  
  
 if __name__ == "__main__":