MCPcopy Create free account
hub / github.com/pallets/flask / new_function

Function new_function

tests/test_views.py:82–85  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

80def test_view_decorators(app, client):
81 def add_x_parachute(f):
82 def new_function(*args, **kwargs):
83 resp = flask.make_response(f(*args, **kwargs))
84 resp.headers["X-Parachute"] = "awesome"
85 return resp
86
87 return new_function
88

Callers

nothing calls this directly

Calls 1

make_responseMethod · 0.80

Tested by

no test coverage detected