예제 #1
0
 def __init__(self, ws, yaml_title, yaml_content):
     #提取relations yaml中的行列对应关系
     self.t_obj = tool_f.Tool()
     self.row_relation = (
         self.t_obj.yaml_manage(yaml_path_relation))['row_relation']
     #实例化tool_f文件中的Tool类,方便后面调用case的展开方法
     self.ex_obj = tool_f.Expand(ws, yaml_title, yaml_content)
예제 #2
0
파일: main.py 프로젝트: eden-cheng/case_lib
def input_file():
    """从yaml中提取场景库的输入路径"""
    yaml_path_file = "./yaml_files/file.yaml"
    t_obj = tool_f.Tool(
    )  #tool_f 类中的有 Tool类 和 Yaml_manage 类,对其中 Yaml_manage 类做实例化
    file_dic = t_obj.yaml_manage(yaml_path_file)  #将文件路径的yaml文件处理为“字典”格式
    input_file = file_dic['lib_path']  #从字典中,提取场景库的文件路径
    return input_file
예제 #3
0
 def __init__(self, lib):
     self.lib = lib
     self.wb = openpyxl.load_workbook(self.lib)
     self.t_obj = tool_f.Tool()
예제 #4
0
 def func_tool(self, yaml_path):
     return tool_f.Tool().yaml_manage(yaml_path)