Пример #1
0
def _create_context():
    """Returns a dictionary with application objects defined and
    configured
    """
    return {
        'app': create_app()
    }
Пример #2
0
 def setup_class(cls):
     cls.app = create_app(debug=False)
     cls.client = cls.app.test_client()
Пример #3
0
def run(ctx, hostname, port, debug):
    """ Run the web server
    """
    log.info('Debug is %s', debug)
    click.secho("Starting web server...\n", fg='green')
    create_app(debug=debug).run(host=hostname, port=port, debug=debug)