Exemplo n.º 1
0
 def setUp(self):
     self.file_samples = [
         {
             'file': 'sample.md',
                     'format': 'markdown'
         },
         {
             'file': 'sample.html',
                     'format': 'html'
         },
     ]
     self.archive_samples = [
         {
             'file': 'sample_defidx.zip',
             'format': 'markdown',
             'idx': None
         },
         {
             'file': 'sample_idx.zip',
             'format': 'markdown',
             'idx': 'ArIdx.md'
         }
     ]
     self.s = requests.Session()
     args, parser = webpandoc.argparser()
     self.webpandoc_port = args.port
Exemplo n.º 2
0
 def setUpClass(cls):
     args, parser = webpandoc.argparser()
     cls.p = Process(
         target=webpandoc.app.run, kwargs={'host': args.bind, 'port': args.port})
     cls.p.start()
     time.sleep(1)