GeezerVison is showing github.com — Merge pull request #41 from brainstorm/master · pythonkurs/python_koans@6c66d44
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +15Lines changed: 15 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +language: python |
| 2 | + |
| 3 | +python: |
| 4 | + - 2.7 |
| 5 | +script: |
| 6 | + - cd python2 |
| 7 | + - python contemplate_koans.py about_asserts # add further koans here separated by spaces |
| 8 | +notifications: |
| 9 | + email: false |
| 10 | + |
| 11 | +# Some other koans (see runner/sensei.py or "ls koans" to see the light): |
| 12 | +# |
| 13 | +# about_none about_lists about_list_assignments about_dictionaries |
| 14 | +# about_strings about_tuples about_methods about_control_statements |
| 15 | +# about_true_and_false about_sets ... |
Collapse file
Copy file name to clipboardExpand all lines: python2/runner/mountain.py +5-4Lines changed: 5 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,8 +18,9 @@ def walk_the_path(self, args=None): |
18 | 18 | "Run the koans tests with a custom runner output." |
19 | 19 |
|
20 | 20 | 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() |
25 | 26 | return self.lesson |