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

Function test_history_with_span_start

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

Source from the content-addressed store, hash-verified

615
616
617def test_history_with_span_start(base_app) -> None:
618 run_cmd(base_app, "help")
619 run_cmd(base_app, "shortcuts")
620 run_cmd(base_app, "help history")
621 out, _err = run_cmd(base_app, "history 2:")
622 expected = normalize(
623 """
624 2 shortcuts
625 3 help history
626"""
627 )
628 assert out == expected
629 verify_hi_last_result(base_app, 2)
630
631
632def test_history_with_span_end(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…