Exemplo n.º 1
0
 def __init__(self, yaml_file):
     yaml_dict = utils.load_yaml(yaml_file)
     if not isinstance(yaml_dict, dict):
         return
     for case_name, case_res in yaml_dict.items():
         if not isinstance(case_res, dict):
             continue
         self[case_name] = {}
         for obj_name, obj_body in case_res.items():
             self[case_name][obj_name] = self._parse_driver_object(obj_body)
Exemplo n.º 2
0
 def __init__(self, yaml_file):
     yaml_dict = utils.load_yaml(yaml_file)
     if not isinstance(yaml_dict, dict):
         return
     for case_name, case_res in yaml_dict.items():
         if not isinstance(case_res, dict):
             continue
         self[case_name] = {}
         for obj_name, obj_body in case_res.items():
             self[case_name][obj_name] = self._parse_driver_object(obj_body)
Exemplo n.º 3
0
 def __init__(self, yaml_file):
     yaml_dict = utils.load_yaml(yaml_file)
     if not isinstance(yaml_dict, dict):
         return
     for section, sec_body in yaml_dict.items():
         if isinstance(sec_body, dict):
             self[section] = {obj_name: self._build_mock_object(obj_body)
                              for obj_name, obj_body
                              in sec_body.items()}
         else:
             self[section] = {}
Exemplo n.º 4
0
 def __init__(self, yaml_file):
     yaml_dict = utils.load_yaml(yaml_file)
     if not isinstance(yaml_dict, dict):
         return
     for section, sec_body in yaml_dict.items():
         if isinstance(sec_body, dict):
             self[section] = {obj_name: self._build_mock_object(obj_body)
                              for obj_name, obj_body
                              in sec_body.items()}
         else:
             self[section] = {}