MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_history_script_format

Function test_history_script_format

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

Source from the content-addressed store, hash-verified

524
525
526def test_history_script_format(base_app) -> None:
527 run_cmd(base_app, "help")
528 run_cmd(base_app, "shortcuts")
529 out, _err = run_cmd(base_app, "history -s")
530 expected = normalize(
531 """
532help
533shortcuts
534"""
535 )
536 assert out == expected
537 verify_hi_last_result(base_app, 2)
538
539
540def test_history_with_string_argument(base_app) -> None:

Callers

nothing calls this directly

Calls 3

run_cmdFunction · 0.85
normalizeFunction · 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…