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

Class TestApp

tests/test_cmd2.py:3592–3600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3590def test_get_help_topics_hidden() -> None:
3591 # Verify get_help_topics() filters out hidden commands
3592 class TestApp(cmd2.Cmd):
3593 def __init__(self, *args, **kwargs) -> None:
3594 super().__init__(*args, **kwargs)
3595
3596 def do_my_cmd(self, args) -> None:
3597 pass
3598
3599 def help_my_cmd(self, args) -> None:
3600 pass
3601
3602 app = TestApp()
3603 assert "my_cmd" in app.get_help_topics()

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…