run_cli¶
- felis.tests.run_cli.run_cli(cmd, log_level=30, catch_exceptions=False, expect_error=False, print_cmd=False, print_output=False, id_generation=False)¶
Run a CLI command and check the exit code.
- Parameters:
log_level (int) – The logging level to use, by default logging.WARNING.
catch_exceptions (bool) – Whether to catch exceptions, by default False.
expect_error (bool) – Whether to expect an error, by default False.
print_cmd (bool) – Whether to print the command, by default False.
print_output (bool) – Whether to print the output, by default False.
id_generation (bool) – Whether to enable id generation, by default False.
- Return type: