MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / test_history_script

Function test_history_script

tests/test_history.py:800–806  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

798
799
800def test_history_script(base_app) -> None:
801 cmds = ["alias create s shortcuts", "s"]
802 for cmd in cmds:
803 run_cmd(base_app, cmd)
804 out, _err = run_cmd(base_app, "history -s")
805 assert out == cmds
806 verify_hi_last_result(base_app, 2)
807
808
809def test_history_expanded_with_invalid_options(base_app) -> None:

Callers

nothing calls this directly

Calls 2

run_cmdFunction · 0.85
verify_hi_last_resultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…