def setUp(self): self.config = CommandConfig() self.init = CommandInit() self.opt = FakeOptions(app_path="./newapp", wsgi_app="app.frontends.wsgi.application",\ debug=True, no_daemon=True, workers=8, keep_alive=True, chroot=True,\ recv="tcp://127.0.0.1:7000", send="tcp://127.0.0.1:7001", no_debug=False, no_chroot=False, no_keep_alive=False) os.system("rm -rf ./newapp/") self.init.run(self.opt)
def setUp(self): self.init = CommandInit() os.system("rm -rf newapp/") self.opt = FakeOptions(app_path="./newapp")