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

Function test_disabled_command_not_in_history

tests/test_cmd2.py:3986–3992  ·  view source on GitHub ↗
(disable_commands_app)

Source from the content-addressed store, hash-verified

3984
3985
3986def test_disabled_command_not_in_history(disable_commands_app) -> None:
3987 message_to_print = "These commands are currently disabled"
3988 disable_commands_app.disable_command("has_helper_func", message_to_print)
3989
3990 saved_len = len(disable_commands_app.history)
3991 run_cmd(disable_commands_app, "has_helper_func")
3992 assert saved_len == len(disable_commands_app.history)
3993
3994
3995def test_get_parser_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…