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

Function test_history_with_integer_span

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

Source from the content-addressed store, hash-verified

600
601
602def test_history_with_integer_span(base_app) -> None:
603 run_cmd(base_app, "help")
604 run_cmd(base_app, "shortcuts")
605 run_cmd(base_app, "help history")
606 out, _err = run_cmd(base_app, "history 1..2")
607 expected = normalize(
608 """
609 1 help
610 2 shortcuts
611"""
612 )
613 assert out == expected
614 verify_hi_last_result(base_app, 2)
615
616
617def test_history_with_span_start(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…