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

Function test_option_count

tests/test_shell_completion.py:171–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170
171def test_option_count():
172 cli = Command("cli", params=[Option(["-c"], count=True)])
173 assert _get_words(cli, ["-c"], "") == []
174 assert _get_words(cli, ["-c"], "-") == ["--help"]
175
176
177def test_option_optional():

Callers

nothing calls this directly

Calls 3

CommandClass · 0.90
OptionClass · 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…