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

Function check

tests/test_cli.py:296–300  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

294 @app.cli.command()
295 @click.argument("value", callback=_param_cb)
296 def check(value):
297 app = click.get_current_context().obj.load_app()
298 # the loaded app should be the same as current_app
299 same_app = current_app._get_current_object() is app
300 return same_app, value
301
302 cli = FlaskGroup(create_app=lambda: app)
303 result = runner.invoke(cli, ["check", "x"], standalone_mode=False)

Callers

nothing calls this directly

Calls 1

load_appMethod · 0.80

Tested by

no test coverage detected