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

Function test_history_expanded_with_string_argument

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

Source from the content-addressed store, hash-verified

553
554
555def test_history_expanded_with_string_argument(base_app) -> None:
556 run_cmd(base_app, "alias create sc shortcuts")
557 run_cmd(base_app, "help")
558 run_cmd(base_app, "help history")
559 run_cmd(base_app, "sc")
560 out, _err = run_cmd(base_app, "history -v shortcuts")
561 expected = normalize(
562 """
563 1 alias create sc shortcuts
564 4 sc
565 4x shortcuts
566"""
567 )
568 assert out == expected
569 verify_hi_last_result(base_app, 2)
570
571
572def test_history_expanded_with_regex_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…