from app import bootstrap_app

app = bootstrap_app()  # Initialise the Flask app
Exemple #2
0
def app():
    """ Create and configure a new app instance for each test """
    app = bootstrap_app()
    yield app
Exemple #3
0
#!/usr/bin/env python

from flask.ext.script import Manager

from app import bootstrap_app

app = bootstrap_app()  # Initialise the flask app.
manager = Manager(app)



manager = Manager(app)

if __name__ == '__main__':
    manager.run()
 def setUp(self):
     self.app = bootstrap_app()
     self.app_context = self.app.app_context()
     self.app_context.push()
     self.client = self.app.test_client()