()
| 945 | |
| 946 | |
| 947 | def test_cmdfinalization_hook_passthrough_exception() -> None: |
| 948 | app = PluggedApp() |
| 949 | app.register_cmdfinalization_hook(app.cmdfinalization_hook_passthrough_exception) |
| 950 | |
| 951 | expected_err = "Pass me up" |
| 952 | with pytest.raises(OSError, match=expected_err): |
| 953 | app.onecmd_plus_hooks("say hello") |
| 954 | assert app.called_cmdfinalization == 1 |
| 955 | |
| 956 | |
| 957 | def test_skip_postcmd_hooks(capsys) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…