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

Function test_apcustom_narg_tuple_negative

tests/test_argparse_utils.py:192–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191
192def test_apcustom_narg_tuple_negative() -> None:
193 parser = Cmd2ArgumentParser()
194 expected_err = "Negative numbers are invalid for nargs range"
195 with pytest.raises(ValueError, match=expected_err):
196 parser.add_argument("invalid_tuple", nargs=(-1, 1))
197
198
199def test_apcustom_narg_tuple_zero_base() -> 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…