MCPcopy
hub / github.com/pallets/click / test_group

Function test_group

tests/test_shell_completion.py:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_group():
43 cli = Group("cli", params=[Option(["-a"])], commands=[Command("x"), Command("y")])
44 assert _get_words(cli, [], "") == ["x", "y"]
45 assert _get_words(cli, [], "-") == ["-a", "--help"]
46
47
48@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

GroupClass · 0.90
OptionClass · 0.90
CommandClass · 0.90
_get_wordsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…