| mirabal | 126e787 | 2017-07-06 05:54:49 -0500 | [diff] [blame] | 1 | import yaml |
| 2 | |||||
| 3 | |||||
| 4 | def get_config(file): | ||||
| 5 | """ | ||||
| 6 | Parse test config file | ||||
| 7 | :param file: | ||||
| 8 | :return: | ||||
| 9 | """ | ||||
| 10 | with open(file, 'r') as stream: | ||||
| 11 | try: | ||||
| 12 | return yaml.load(stream) | ||||
| 13 | except yaml.YAMLError as exc: | ||||
| 14 | print(exc) | ||||
| 15 | |||||