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

Function test_intrange_default_help_text

tests/test_options.py:689–694  ·  view source on GitHub ↗
(type, expect)

Source from the content-addressed store, hash-verified

687 ],
688)
689def test_intrange_default_help_text(type, expect):
690 option = click.Option(["--num"], type=type, show_default=True, default=2)
691 context = click.Context(click.Command("test"))
692 assert option.get_help_extra(context) == {"default": "2", "range": expect}
693 result = option.get_help_record(context)[1]
694 assert expect in result
695
696
697def test_count_default_type_help():

Callers

nothing calls this directly

Calls 2

get_help_extraMethod · 0.95
get_help_recordMethod · 0.95

Tested by

no test coverage detected