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

Function test_enable_enabled_command

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

Source from the content-addressed store, hash-verified

3954
3955
3956def test_enable_enabled_command(disable_commands_app) -> None:
3957 # Test enabling a command that is not disabled
3958 saved_len = len(disable_commands_app.disabled_commands)
3959 disable_commands_app.enable_command("has_helper_func")
3960
3961 # The number of disabled commands should not have changed
3962 assert saved_len == len(disable_commands_app.disabled_commands)
3963
3964
3965def test_disable_fake_command(disable_commands_app) -> None:

Callers

nothing calls this directly

Calls 1

enable_commandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…