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

Function test_multiple_aliases

tests/test_cmd2.py:2900–2909  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

2898
2899
2900def test_multiple_aliases(base_app) -> None:
2901 alias1 = "h1"
2902 alias2 = "h2"
2903 run_cmd(base_app, f"alias create {alias1} help")
2904 run_cmd(base_app, f"alias create {alias2} help -v")
2905 out, _err = run_cmd(base_app, alias1)
2906 verify_help_text(base_app, out)
2907
2908 out, _err = run_cmd(base_app, alias2)
2909 verify_help_text(base_app, out)
2910
2911
2912def test_macro_no_subcommand(base_app) -> None:

Callers

nothing calls this directly

Calls 2

run_cmdFunction · 0.85
verify_help_textFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…