4 with open('./functest/testcases.yaml') as f:
5 testcases_yaml = yaml.safe_load(f)
9 def compose_format(fmt):
10 return 'format_' + fmt.strip()
13 def get_format(project, case):
14 testcases = testcases_yaml.get(project)
15 if isinstance(testcases, list):
16 for case_dict in testcases:
17 if case_dict['name'] == case:
18 return compose_format(case_dict['format'])
22 if __name__ == '__main__':
23 fmt = get_format('functest', 'vping_ssh')