MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

tests/test_cmd2.py:597–599  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

595def test_in_script(request) -> None:
596 class HookApp(cmd2.Cmd):
597 def __init__(self, *args, **kwargs) -> None:
598 super().__init__(*args, **kwargs)
599 self.register_cmdfinalization_hook(self.hook)
600
601 def hook(self: cmd2.Cmd, data: plugin.CommandFinalizationData) -> plugin.CommandFinalizationData:
602 if self.in_script():

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected