Skip to content
Myr

Added metavars for choice test

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

authored by Armin Ronacher · committed by Armin Ronacher · parent e9ec187 · Browse files · 1 file+3 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+3 added−0 removed

  • tests:+3 added−0 removed

1 file+3 added−0 removed

modified:tests/test_basic.py+3 added
201 unmodified lines
202 result = runner.invoke(cli, ['--method=meh'])203 assert result.exit_code == 2204 assert 'Invalid value for "--method": invalid choice: meh. ' \205 '(choose from foo, bar, baz)' in result.output206207 result = runner.invoke(cli, ['--help'])208 assert '--method [foo|bar|baz]' in result.output