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

Function test_history_with_span_end

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

Source from the content-addressed store, hash-verified

630
631
632def test_history_with_span_end(base_app) -> None:
633 run_cmd(base_app, "help")
634 run_cmd(base_app, "shortcuts")
635 run_cmd(base_app, "help history")
636 out, _err = run_cmd(base_app, "history :2")
637 expected = normalize(
638 """
639 1 help
640 2 shortcuts
641"""
642 )
643 assert out == expected
644 verify_hi_last_result(base_app, 2)
645
646
647def test_history_with_span_index_error(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…