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

Function _param_cb

tests/test_cli.py:290–292  ·  view source on GitHub ↗
(ctx, param, value)

Source from the content-addressed store, hash-verified

288
289def test_app_cli_has_app_context(app, runner):
290 def _param_cb(ctx, param, value):
291 # current_app should be available in parameter callbacks
292 return bool(current_app)
293
294 @app.cli.command()
295 @click.argument("value", callback=_param_cb)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected