Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()