def _create_context(): """Returns a dictionary with application objects defined and configured """ return { 'app': create_app() }
def setup_class(cls): cls.app = create_app(debug=False) cls.client = cls.app.test_client()
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)