Include the number of the yaml file for easier debugging

This commit is contained in:
Honza Kral
2013-07-10 14:32:44 +02:00
parent da68a5d986
commit d179ab20c9
@@ -143,7 +143,7 @@ if yaml_dir:
if not filename.endswith('.yaml'):
continue
# ... parse them
name = 'Test' + ''.join(s.title() for s in path[len(yaml_dir) + 1:].split('/')) + filename.rsplit('.', 1)[0][3:].title()
name = 'Test' + ''.join(s.title() for s in path[len(yaml_dir) + 1:].split('/')) + filename.rsplit('.', 1)[0].title().replace('_', '')
# and insert them into locals for test runner to find them
locals()[name] = construct_case(join(path, filename), name)