prefect.testing.cli
check_contains
should_contain
: if True, checks that content is in cli_result,
if False, checks that content is not in cli_resultinvoke_and_assert
command
: Command passed to the Typer CliRunneruser_input
: User input passed to the Typer CliRunner when running interactive
commands.expected_output
: Used when you expect the CLI output to be an exact match with
the provided text.expected_output_contains
: Used when you expect the CLI output to contain the
string or strings.expected_output_does_not_contain
: Used when you expect the CLI output to not
contain the string or strings.expected_code
: 0 if we expect the app to exit cleanly, else 1 if we expect
the app to exit with an error.temp_dir
: if provided, the CLI command will be run with this as its present
working directory.temporary_console_width