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

Function test_history_with_string_argument

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

Source from the content-addressed store, hash-verified

538
539
540def test_history_with_string_argument(base_app) -> None:
541 run_cmd(base_app, "help")
542 run_cmd(base_app, "shortcuts")
543 run_cmd(base_app, "help history")
544 out, _err = run_cmd(base_app, "history help")
545 expected = normalize(
546 """
547 1 help
548 3 help history
549"""
550 )
551 assert out == expected
552 verify_hi_last_result(base_app, 2)
553
554
555def test_history_expanded_with_string_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…