Commits

Anonymous committed 5bc6952

simplified the tests to use the builtin python simple server

  • Participants
  • Parent commits 016efef

Comments (0)

Files changed (2)

File configs/simple.conf

+[simpleweb]
+command = python -m SimpleHTTPServer $PORT
+PORT = 8000
 class TestApps(object):
 
     def create_sandboxes(self):
-        sbox = os.path.join(DAD_TEST_SANDBOXES, 'hello_world', 'bin')
+        sbox = os.path.join(DAD_TEST_SANDBOXES, 'simpleweb')
         if not os.path.isdir(sbox):
             os.makedirs(sbox)
         return sbox
 
     def deploy(self):
         sbox = self.create_sandboxes()
-        dest = os.path.join(sbox, 'hello_world')
-        src = os.path.join(HERE, 'example/hello_world')
-        if not os.path.isfile(dest):
-            shutil.copy(src, dest)
 
     def remove(self):
         shutil.rmtree(DAD_TEST_SANDBOXES)
         self.log.info('starting %s', cmd)
 
         os.environ['DAD_SANDBOXES'] = DAD_TEST_SANDBOXES
-        os.environ['DAD_CONFIG'] = 'configs/test.conf'
+        os.environ['DAD_CONFIG'] = 'configs/simple.conf'
         self.proc = subprocess.Popen([cmd], stdout=self.get_log())
 
         try: