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

Function test_macro_create_with_args

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

Source from the content-addressed store, hash-verified

2988
2989
2990def test_macro_create_with_args(base_app) -> None:
2991 # Create the macro
2992 out, _err = run_cmd(base_app, "macro create fake {1} {2}")
2993 assert out == normalize("Macro 'fake' created")
2994
2995 # Run the macro
2996 out, _err = run_cmd(base_app, "fake help -v")
2997 verify_help_text(base_app, out)
2998
2999
3000def test_macro_create_with_escaped_args(base_app) -> None:

Callers

nothing calls this directly

Calls 3

run_cmdFunction · 0.85
normalizeFunction · 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…