def setUp(self): self.app = create_app() self.app.debug = True self.client = self.app.test_client() self.resp = self.client.get('/') self.headers = {} self._headers()
# Run a test server. import exampleapp app = exampleapp.create_app() app.config.update({ "DEBUG": True, "USE_RELOADER": True }) app.run(host='0.0.0.0', port=5000)
def setUp(self): self.app = create_app() self.client = self.app.test_client()
def setUp(self): self.app = create_app(TESTING=True) self.app.debug = True self.client = self.app.test_client()
def main(): app = create_app() app.run(host='0.0.0.0')
def main(): app = create_app() app.run(debug=True)
def create_app(self): return exampleapp.create_app()