def test_filelist(self): "Test use of exclude file list" from figleaf.annotate_html import make_html_filename x = utils.run_check('figleaf2html', '-x', 'tst-cover.exclude', '-D') (status, out, errout) = x print out, errout assert utils.does_dir_NOT_contain(self.htmldir, make_html_filename('tst-cover.py'))
def test_filelist(self): "Test use of explicit file list" from figleaf.annotate_html import make_html_filename x = utils.run_check('figleaf2html', '-f', 'tst-cover.file-list', '-D') (status, out, errout) = x print out, errout assert utils.does_dir_contain(self.htmldir, 'index.html', make_html_filename('tst-cover.py'), only_contains = True)
def test_dirname(self): "Test use of explicit output directory" from figleaf.annotate_html import make_html_filename newhtmldir = os.path.join(testdir, 'foohtml') newhtmldir = os.path.abspath(newhtmldir) self.htmldir = newhtmldir # RESET HTMLDIR # precondition assert in case of improper cleanup... assert not os.path.exists(self.htmldir) assert not os.path.isdir(self.htmldir) assert not os.path.exists(os.path.join(self.htmldir, 'index.html')) utils.run('figleaf2html', '-d', 'foohtml') # should output to ./foohtml/ now assert os.path.exists(self.htmldir) assert os.path.isdir(self.htmldir) assert os.path.exists(os.path.join(self.htmldir, 'index.html')) assert utils.does_dir_contain(self.htmldir, 'index.html', make_html_filename('tst-cover.py'))