diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-20 13:45:24 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-20 13:45:24 -0700 |
commit | bd207abff65f5908c444867558dd11c9b7bd199c (patch) | |
tree | 9279b2c5e067ecb12b3927fbb1484a8c1e5abb1c /pystache | |
parent | 8aa242e9d0b46ad1edff9d559413572b02c1efe6 (diff) | |
download | pystache-bd207abff65f5908c444867558dd11c9b7bd199c.tar.gz |
Stubbed out _PystacheTestProgram.runTests().
Diffstat (limited to 'pystache')
-rw-r--r-- | pystache/tests/main.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pystache/tests/main.py b/pystache/tests/main.py index 7c71fd4..0cd3e8e 100644 --- a/pystache/tests/main.py +++ b/pystache/tests/main.py @@ -9,7 +9,6 @@ This module is for our test console script. import os import sys -import unittest from unittest import TestProgram @@ -111,8 +110,17 @@ def _discover_test_modules(package): return modules + class _PystacheTestProgram(TestProgram): - pass + + """ + Instantiating an instance of this class runs all tests. + + """ + + def runTests(self): + # TODO: add doctests, etc. to the self.test TestSuite. + TestProgram.runTests(self) class Tester(object): @@ -145,5 +153,5 @@ class Tester(object): # (This would require importing all of the unittest modules from # this module.) See the loadTestsFromName() method of the # unittest.TestLoader class for more details on this parameter. - unittest.main(argv=sys_argv, module=None) + _PystacheTestProgram(argv=sys_argv, module=None) # No need to return since unitttest.main() exits. |