OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, app, **kwargs) |
def | invoke (self, cli=None, args=None, **kwargs) |
![]() | |
def | __init__ (self, charset=None, env=None, echo_stdin=False, mix_stderr=True) |
def | get_default_prog_name (self, cli) |
def | make_env (self, overrides=None) |
def | isolation (self, input=None, env=None, color=False) |
def | invoke (self, cli, args=None, input=None, env=None, catch_exceptions=True, color=False, **extra) |
def | isolated_filesystem (self) |
Data Fields | |
app | |
![]() | |
charset | |
env | |
echo_stdin | |
mix_stderr | |
A :class:`~click.testing.CliRunner` for testing a Flask app's CLI commands. Typically created using :meth:`~flask.Flask.test_cli_runner`. See :ref:`testing-cli`.
def __init__ | ( | self, | |
app, | |||
** | kwargs | ||
) |
def invoke | ( | self, | |
cli = None , |
|||
args = None , |
|||
** | kwargs | ||
) |
Invokes a CLI command in an isolated environment. See :meth:`CliRunner.invoke <click.testing.CliRunner.invoke>` for full method documentation. See :ref:`testing-cli` for examples. If the ``obj`` argument is not given, passes an instance of :class:`~flask.cli.ScriptInfo` that knows how to load the Flask app being tested. :param cli: Command object to invoke. Default is the app's :attr:`~flask.app.Flask.cli` group. :param args: List of strings to invoke the command with. :return: a :class:`~click.testing.Result` object.
app |