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

Function test_apcustom_narg_invalid_tuples

tests/test_argparse_utils.py:178–182  ·  view source on GitHub ↗
(nargs_tuple)

Source from the content-addressed store, hash-verified

176 ],
177)
178def test_apcustom_narg_invalid_tuples(nargs_tuple) -> None:
179 parser = Cmd2ArgumentParser()
180 expected_err = "Ranged values for nargs must be a tuple of 1 or 2 integers"
181 with pytest.raises(ValueError, match=expected_err):
182 parser.add_argument("invalid_tuple", nargs=nargs_tuple)
183
184
185def test_apcustom_narg_tuple_order() -> None:

Callers

nothing calls this directly

Calls 1

Cmd2ArgumentParserClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…