Skip to content

Commit 1552734

Browse files
author
Roman Valls Guimera
committed
Allow for several koans when calling contemplate koan, needs some refactoring
1 parent 03c0352 commit 1552734

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

python2/runner/mountain.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ def walk_the_path(self, args=None):
1818
"Run the koans tests with a custom runner output."
1919

2020
if args and len(args) >=2:
21-
self.tests = unittest.TestLoader().loadTestsFromName("koans." + args[1])
22-
23-
self.tests(self.lesson)
24-
self.lesson.learn()
21+
args.pop(0)
22+
for arg in args:
23+
self.tests = unittest.TestLoader().loadTestsFromName("koans." + arg)
24+
self.tests(self.lesson)
25+
self.lesson.learn()
2526
return self.lesson

0 commit comments

Comments
 (0)