[Happydoc-checkins] CVS: HappyDoc test_happydoc.py,1.85,1.86
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2002-08-04 10:48:00
|
Update of /cvsroot/happydoc/HappyDoc In directory usw-pr-cvs1:/tmp/cvs-serv12559 Modified Files: test_happydoc.py Log Message: Provide defaults to constructor arguments. Index: test_happydoc.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc/test_happydoc.py,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** test_happydoc.py 8 Jun 2002 16:59:25 -0000 1.85 --- test_happydoc.py 4 Aug 2002 10:47:57 -0000 1.86 *************** *** 105,108 **** --- 105,113 ---- WEB_CHECKER = os.path.join(WEB_CHECKER_DIR, 'webchecker.py') + def __init__(self, methodName='runTest', outputDir=DEFAULT_OUTPUT_DIR, + statusMessageFunc=None): + StreamFlushTest.__init__(self, methodName, outputDir, statusMessageFunc) + return + def setUp(self): self.happydoc = os.path.join(os.curdir, 'happydoc') *************** *** 380,383 **** --- 385,389 ---- def __init__(self, + methodName='runTest', workingDir=os.curdir, outputDir='DefaultTestOutputDir', *************** *** 389,392 **** --- 395,399 ---- output_dir = happydoclib.path.join(os.pardir, 'HappyDoc', outputDir) nargs['outputDir'] = output_dir + nargs['methodName'] = methodName apply(HappyDocTestBase.__init__, (self,), nargs) # *************** *** 526,530 **** """ ! def __init__(self, outputDir, statusMessageFunc, knownTestCaseClasses): self.output_dir = outputDir self.status_message_func = statusMessageFunc --- 533,537 ---- """ ! def __init__(self, outputDir='', statusMessageFunc=None, knownTestCaseClasses=[]): self.output_dir = outputDir self.status_message_func = statusMessageFunc |