GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • .travis.yml
  • python2/runner
    • mountain.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.travis.yml‎

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

‎python2/runner/mountain.py‎

Copy file name to clipboardExpand all lines: python2/runner/mountain.py
+5-4Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.