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

Function test_enable_enabled_category

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

Source from the content-addressed store, hash-verified

4107
4108
4109def test_enable_enabled_category(disable_commands_app) -> None:
4110 # Test enabling a category that is not disabled
4111 saved_len = len(disable_commands_app.disabled_categories)
4112 disable_commands_app.enable_category("Test Category")
4113
4114 # The number of disabled categories should not have changed
4115 assert saved_len == len(disable_commands_app.disabled_categories)
4116
4117
4118def test_disable_category_twice(disable_commands_app) -> None:

Callers

nothing calls this directly

Calls 1

enable_categoryMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…