Commit 8a8d5436 authored by quyuan's avatar quyuan

add ci

parent 7a4c8d2d
...@@ -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__":
......
...@@ -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):
# """ # """
......
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