Changeset 22
- Timestamp:
- 10/11/2007 05:09:58 AM (15 months ago)
- Location:
- trunk/functest
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/functest/bin.py
r17 r22 53 53 import functest 54 54 functest.configure() 55 functest.registry['functest_cli'] = True 55 56 56 57 args = list(sys.argv) -
trunk/functest/runner.py
r10 r22 18 18 19 19 20 class FunctestRunnerInterface(object): 21 """Simple class that returns a stub function if one of the methods isn't implemented""" 22 def __getattr__(self, name): 23 return lambda *args, **kwargs : None 24 20 25 class CLIRunner(object): 21 26 22 indentation = 0 27 indentation = 0 23 28 24 29 def start(self): pass … … 70 75 def begin_tests_in_module(self, module, tests): 71 76 self.output.write(self.indentation*' '+module.__name__+'.tests:') 77 self.output.flush() 72 78 73 79 def test_function_passed(self, test): … … 87 93 def end_tests_in_module(self, module, tests): 88 94 self.output.write('\n') 89 self.output.flush()90 95 91 96 def print_wrapped_output(self):
