MCPcopy
hub / github.com/pallets/flask / MyBlueprint

Class MyBlueprint

tests/test_blueprints.py:224–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223def test_default_static_max_age(app):
224 class MyBlueprint(flask.Blueprint):
225 def get_send_file_max_age(self, filename):
226 return 100
227
228 blueprint = MyBlueprint("blueprint", __name__, static_folder="static")
229 app.register_blueprint(blueprint)

Callers 1

Calls

no outgoing calls

Tested by 1