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

Function test_arglist_kwargs

tests/test_argparse.py:236–240  ·  view source on GitHub ↗

Test with_argument_list wrapper passes through kwargs to command function

(argparse_app, capsys)

Source from the content-addressed store, hash-verified

234
235
236def test_arglist_kwargs(argparse_app, capsys) -> None:
237 """Test with_argument_list wrapper passes through kwargs to command function"""
238 argparse_app.do_arglist("arg", keyword_arg="foo")
239 out, _err = capsys.readouterr()
240 assert out == "foo\n"
241
242
243def test_preservelist(argparse_app) -> None:

Callers

nothing calls this directly

Calls 1

do_arglistMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…