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

Function test_apcustom_narg_tuple_order

tests/test_argparse_utils.py:185–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184
185def test_apcustom_narg_tuple_order() -> None:
186 parser = Cmd2ArgumentParser()
187 expected_err = "Invalid nargs range. The first value must be less than the second"
188 with pytest.raises(ValueError, match=expected_err):
189 parser.add_argument("invalid_tuple", nargs=(2, 1))
190
191
192def test_apcustom_narg_tuple_negative() -> 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…