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

Function test_invalid_parser_builder

tests/test_argparse.py:248–251  ·  view source on GitHub ↗
(argparse_app)

Source from the content-addressed store, hash-verified

246
247
248def test_invalid_parser_builder(argparse_app):
249 parser_builder = None
250 with pytest.raises(TypeError, match="Invalid type for parser_builder"):
251 argparse_app._build_parser(argparse_app, parser_builder)
252
253
254def test_invalid_parser_return_type(argparse_app):

Callers

nothing calls this directly

Calls 1

_build_parserMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…