MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_disabled_message_command_name

Function test_disabled_message_command_name

tests/test_cmd2.py:4039–4044  ·  view source on GitHub ↗
(disable_commands_app: DisableCommandsApp)

Source from the content-addressed store, hash-verified

4037
4038
4039def test_disabled_message_command_name(disable_commands_app: DisableCommandsApp) -> None:
4040 message_to_print = f"{COMMAND_NAME} is currently disabled"
4041 disable_commands_app.disable_command("has_helper_func", message_to_print)
4042
4043 _out, err = run_cmd(disable_commands_app, "has_helper_func")
4044 assert err[0].startswith("has_helper_func is currently disabled")
4045
4046
4047def test_help_argparse_command_while_disabled(disable_commands_app: DisableCommandsApp) -> None:

Callers

nothing calls this directly

Calls 2

run_cmdFunction · 0.85
disable_commandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…