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

Function test_argparser_and_unknown_args_kwargs

tests/test_argparse.py:197–201  ·  view source on GitHub ↗

Test with_argparser wrapper passing through kwargs to command function

(argparse_app, capsys)

Source from the content-addressed store, hash-verified

195
196
197def test_argparser_and_unknown_args_kwargs(argparse_app, capsys) -> None:
198 """Test with_argparser wrapper passing through kwargs to command function"""
199 argparse_app.do_speak("", keyword_arg="foo")
200 out, _err = capsys.readouterr()
201 assert out == "foo\n"
202
203
204def test_argparse_quoted_arguments_multiple(argparse_app) -> None:

Callers

nothing calls this directly

Calls 1

do_speakMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…