From d179ab20c90231859bc9d023fdde1b89d5251c22 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Wed, 10 Jul 2013 14:32:44 +0200 Subject: [PATCH] Include the number of the yaml file for easier debugging --- test_elasticsearch/test_server/test_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py index 04b456f4..fe02e0de 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -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)