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()
Пример #2
0
# 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()
Пример #4
0
 def setUp(self):
     self.app = create_app(TESTING=True)
     self.app.debug = True
     self.client = self.app.test_client()
Пример #5
0
def main():
    app = create_app()
    app.run(host='0.0.0.0')
Пример #6
0
def main():
    app = create_app()
    app.run(debug=True)
 def create_app(self):
     return exampleapp.create_app()