(capsys)
| 2045 | |
| 2046 | |
| 2047 | def test_echo(capsys) -> None: |
| 2048 | app = cmd2.Cmd() |
| 2049 | app.echo = True |
| 2050 | commands = ["help history"] |
| 2051 | |
| 2052 | app.runcmds_plus_hooks(commands) |
| 2053 | |
| 2054 | out, _err = capsys.readouterr() |
| 2055 | assert out.startswith(f"{app.prompt}{commands[0]}\nUsage: history") |
| 2056 | |
| 2057 | |
| 2058 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected
searching dependent graphs…