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

Function test_cmdfinalization_hook_system_exit

tests/test_plugin.py:915–921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

913
914
915def test_cmdfinalization_hook_system_exit() -> None:
916 app = PluggedApp()
917 app.register_cmdfinalization_hook(app.cmdfinalization_hook_system_exit)
918 stop = app.onecmd_plus_hooks("say hello")
919 assert stop
920 assert app.called_cmdfinalization == 1
921 assert app.exit_code == 5
922
923
924def test_cmdfinalization_hook_keyboard_interrupt() -> None:

Callers

nothing calls this directly

Calls 3

PluggedAppClass · 0.85
onecmd_plus_hooksMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…