class FlaskCliRunner(CliRunner):
~click.testing.CliRunner
for testing a Flask app's
CLI commands. Typically created using
~flask.Flask.test_cli_runner
. See :ref:`testing-cli`.Method | invoke |
Invokes a CLI command in an isolated environment. See CliRunner.invoke for full method documentation. See :ref:`testing-cli` for examples. |
Method | __init__ |
Undocumented |
Instance Variable | app |
Undocumented |
Invokes a CLI command in an isolated environment. See
CliRunner.invoke
for
full method documentation. See :ref:`testing-cli` for examples.
If the obj argument is not given, passes an instance of
~flask.cli.ScriptInfo
that knows how to load the Flask
app being tested.
Parameters | |
cli:t.Any | Command object to invoke. Default is the app's
~flask.app.Flask.cli group. |
args:t.Any | List of strings to invoke the command with. |
**kwargs:t.Any | Undocumented |
Returns | |
t.Any | a ~click.testing.Result object. |
Undocumented
Parameters | |
app:Flask | Undocumented |
**kwargs:t.Any | Undocumented |