(capsys)
| 868 | |
| 869 | |
| 870 | def test_cmdfinalization_stop_first(capsys) -> None: |
| 871 | app = PluggedApp() |
| 872 | app.register_cmdfinalization_hook(app.cmdfinalization_hook_stop) |
| 873 | app.register_cmdfinalization_hook(app.cmdfinalization_hook) |
| 874 | stop = app.onecmd_plus_hooks("say hello") |
| 875 | out, err = capsys.readouterr() |
| 876 | assert out == "hello\n" |
| 877 | assert not err |
| 878 | assert app.called_cmdfinalization == 2 |
| 879 | assert stop |
| 880 | |
| 881 | |
| 882 | def test_cmdfinalization_stop_second(capsys) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…