MCPcopy
hub / github.com/tox-dev/tox / test_sub_sub_command

Function test_sub_sub_command

tests/config/cli/test_parser.py:100–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def test_sub_sub_command() -> None:
101 parser = ToxParser.base()
102 with pytest.raises(RuntimeError, match="no sub-command group allowed"):
103 parser.add_command(
104 "c",
105 [],
106 "help",
107 lambda s: 0, # noqa: ARG005
108 ) # pragma: no cover - the lambda will never be run
109
110
111def test_parse_known_args_not_set(mocker: MockerFixture) -> None:

Callers

nothing calls this directly

Calls 2

baseMethod · 0.80
add_commandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…