Skip to content
Myr

Merge pull request #1779 from b3n4kh/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 4f17161, 9a0b219 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:tests/test_options.py+8 added
666 unmodified lines
667 message = opt.get_help_record(ctx)[1]668 assert "[default: (unlimited)]" in message669670671def test_do_not_show_no_default(runner):672 """When show_default is True and no default is set do not show None."""673 opt = click.Option(["--limit"], show_default=True)674 ctx = click.Context(click.Command("cli"))675 message = opt.get_help_record(ctx)[1]676 assert "[default: None]" not in message677678679@pytest.mark.parametrize(680 ("args", "expect"),681 [682 (None, (None, None, ())),
25 unmodified lines