コード例 #1
0
 def test_create_document(self):
     """ Should create reST document. """
     res = self.client.get('/')
     autodoc.parse('GET /', res)
     autodoc.create_document(os.path.join(self.root_path,
                                          'var/test_autodoc.rst'))
     self.assertTrue(os.path.exists(os.path.join(self.root_path,
                                                 'var/test_autodoc.rst')))
     autodoc.clear()
コード例 #2
0
 def test_create_document(self):
     """ Should create reST document. """
     res = self.client.get('/')
     autodoc.parse('GET /', res)
     autodoc.create_document(os.path.join(self.root_path,
                                          'var/test_autodoc.rst'))
     self.assertTrue(os.path.exists(os.path.join(self.root_path,
                                                 'var/test_autodoc.rst')))
     autodoc.clear()
コード例 #3
0
 def test_create_markdown_document(self):
     """ Should create markdown document. """
     res = self.client.get('/')
     autodoc.parse('GET /', res)
     autodoc.template_path = os.path.join(self.root_path,
                                          'templates/markdown.md')
     output = os.path.join(self.root_path, 'var/test_autodoc.md')
     autodoc.create_document(output)
     ret = os.path.exists(output)
     self.assertTrue(ret)
     autodoc.clear()
コード例 #4
0
 def test_create_markdown_document(self):
     """ Should create markdown document. """
     res = self.client.get('/')
     autodoc.parse('GET /', res)
     autodoc.template_path = os.path.join(self.root_path,
                                          'templates/markdown.md')
     output = os.path.join(self.root_path, 'var/test_autodoc.md')
     autodoc.create_document(output)
     ret = os.path.exists(output)
     self.assertTrue(ret)
     autodoc.clear()