完成初版
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"""main.py - MIL SDK 测试示例"""
|
||||
from pathlib import Path
|
||||
from src.core import setup_logging, read_excel_data,read_excel_case,create_excel_case
|
||||
|
||||
|
||||
def main():
|
||||
setup_logging()
|
||||
|
||||
sample_path = Path(__file__).parent / "sample.xlsx"
|
||||
case_path = Path(__file__).parent / "case.xlsx"
|
||||
excel_path = Path(__file__).parent
|
||||
|
||||
|
||||
# print(f"读取文件: {sample_path}")
|
||||
data_dict = read_excel_data(sample_path, return_object=False)
|
||||
pass
|
||||
# print(data_dict)
|
||||
case_dict = read_excel_case(case_path,data_dict,True)
|
||||
pass
|
||||
create_excel_case(excel_path,data_dict,case_dict)
|
||||
# print(case_dict)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user