[Happydoc-checkins] CVS: HappyDoc test_happydoc.py,1.89,1.90
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2003-03-15 12:38:55
|
Update of /cvsroot/happydoc/HappyDoc In directory sc8-pr-cvs1:/tmp/cvs-serv5428 Modified Files: test_happydoc.py Log Message: A couple of new tests. Index: test_happydoc.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc/test_happydoc.py,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** test_happydoc.py 25 Aug 2002 18:33:29 -0000 1.89 --- test_happydoc.py 15 Mar 2003 12:38:51 -0000 1.90 *************** *** 116,124 **** return ! def runHappyDoc(self, modules=(), extraArgs=(), useWebChecker=0): # # Fix up output directory variable # ! output_dir = self.output_dir happydoc = self.happydoc test_name = self.name --- 116,129 ---- return ! def runHappyDoc(self, ! modules=(), ! extraArgs=(), ! useWebChecker=0, ! outputDir=None, ! ): # # Fix up output directory variable # ! output_dir = outputDir or self.output_dir happydoc = self.happydoc test_name = self.name *************** *** 273,276 **** --- 278,303 ---- ) ), 'Basic docset test with package description files failed.' + return + + def testOutputToTmp(self): + assert (not self.runHappyDoc( (os.path.join('TestCases', + 'test_package_summaries'), + ), + useWebChecker=1, + outputDir = '/tmp', + ) + ), 'Writing to /tmp failed.' + return + + def testFullPathInput(self): + cwd = os.getcwd() + input_dir = os.path.join(cwd, + 'TestCases', + 'test_package_summaries', + ) + assert (not self.runHappyDoc( (input_dir,), + useWebChecker=1, + ) + ), 'Basic docset test with full path as input.' return |