def METHOD_NAME():
    """Create a test app with an `index` view."""
    new_app = Flask(__name__)
    @new_app.route('/')
    def index():  # skipcq: PTC-W0065
        """Unused index view, only referred to via url_for."""
        return 'test_index'
    return new_app