()
| 913 | |
| 914 | |
| 915 | def 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 | |
| 924 | def test_cmdfinalization_hook_keyboard_interrupt() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…