def test_manual_publish(self): self.app.config['confluence_publish'] = True builder = ConfluenceBuilder(self.app) builder.init() for docname in self.docnames: builder.info("\033[01mpublishing '%s'...\033[0m" % docname) output_filename = os.path.join(self.out, docname + '.conf') with open(output_filename, 'r') as output_file: output = output_file.read() builder.publish_doc(docname, output) builder.finish()
def test_manual_publish(self): self.app.config['confluence_publish'] = True builder = ConfluenceBuilder(self.app) builder.init() for docname in self.docnames: if self.single_docname and self.single_docname != docname: continue ConfluenceLogger.info("\033[01mpublishing '%s'...\033[0m" % docname) output_filename = os.path.join(self.out, docname + '.conf') with io.open(output_filename, encoding='utf8') as output_file: output = output_file.read() builder.publish_doc(docname, output) builder.finish()