Skip to content

Commit eb8a87d

Browse files
Change loop over itens just once
1 parent 326ce69 commit eb8a87d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests_and_examples/test_name_generator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,8 @@ def main():
210210
open('examples/{}.json'.format(query_type)),
211211
object_pairs_hook=collections.OrderedDict)
212212

213-
for i in range(len(tests)):
214-
tests[i]['name'] = generate_name(query_type, tests[i])
215-
216213
for test in tests:
214+
test['name'] = generate_name(query_type, test)
217215
print test['name']
218216

219217
json.dump(tests,

0 commit comments

Comments
 (0)