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

Function test_history_with_integer_argument

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

Source from the content-addressed store, hash-verified

587
588
589def test_history_with_integer_argument(base_app) -> None:
590 run_cmd(base_app, "help")
591 run_cmd(base_app, "shortcuts")
592 out, _err = run_cmd(base_app, "history 1")
593 expected = normalize(
594 """
595 1 help
596"""
597 )
598 assert out == expected
599 verify_hi_last_result(base_app, 1)
600
601
602def test_history_with_integer_span(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…