failed test info:
__________________________________________________________________________ test_cli __________________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fce304aa470>
def test_cli(monkeypatch):
runner = CliRunner()
result = runner.invoke(cli, ['l'])
assert 'Error: Too many matches: last, list' in result.output
runner = CliRunner()
result = runner.invoke(cli, ['li'])
assert 'list\n' == result.output
runner = CliRunner()
result = runner.invoke(cli, ['last'])
assert 'last\n' == result.output
runner = CliRunner()
result = runner.invoke(cli, ["notexists"])
> assert 'Error: No such command "notexists"' in result.output
E assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
E + where "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" = <Result SystemExit(2)>.output
tests/test_console.py:207: AssertionError
================================================================== short test summary info ===================================================================
FAILED tests/test_console.py::test_cli - assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
failed test info:
```
__________________________________________________________________________ test_cli __________________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fce304aa470>
def test_cli(monkeypatch):
runner = CliRunner()
result = runner.invoke(cli, ['l'])
assert 'Error: Too many matches: last, list' in result.output
runner = CliRunner()
result = runner.invoke(cli, ['li'])
assert 'list\n' == result.output
runner = CliRunner()
result = runner.invoke(cli, ['last'])
assert 'last\n' == result.output
runner = CliRunner()
result = runner.invoke(cli, ["notexists"])
> assert 'Error: No such command "notexists"' in result.output
E assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
E + where "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" = <Result SystemExit(2)>.output
tests/test_console.py:207: AssertionError
================================================================== short test summary info ===================================================================
FAILED tests/test_console.py::test_cli - assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
```