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

Function test_argparser_kwargs

tests/test_argparse.py:150–154  ·  view source on GitHub ↗

Test with_argparser wrapper passes through kwargs to command function

(argparse_app, capsys)

Source from the content-addressed store, hash-verified

148
149
150def test_argparser_kwargs(argparse_app, capsys) -> None:
151 """Test with_argparser wrapper passes through kwargs to command function"""
152 argparse_app.do_say("word", keyword_arg="foo")
153 out, _err = capsys.readouterr()
154 assert out == "foo\n"
155
156
157def test_argparse_preserve_quotes(argparse_app) -> None:

Callers

nothing calls this directly

Calls 1

do_sayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…