Skip to content

Commit

Permalink
tests(run_tests.py): uses new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed May 6, 2015
1 parent aab44cc commit c445a10
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions clap-tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,38 @@
USAGE:
claptests [POSITIONAL] [FLAGS] [OPTIONS] [SUBCOMMANDS]
For more information try --help'''

_arg_dym_usage = '''The argument --optio isn't valid
\tDid you mean --option ?
USAGE:
\tclaptests
For more information try --help'''

_pv_dym_usage = '''"slo" isn't a valid value for '--Option <option3>'
[valid values: fast slow]
Did you mean 'slow' ?
USAGE:
claptests --Option <option3>
For more information try --help'''

_excluded = '''The argument '--flag' cannot be used with '-F'
USAGE:
\tclaptests [positional2] -F --long-option-2 <option2>
For more information try --help'''

_excluded_l = '''The argument -f cannot be used '-F'
USAGE:
claptests [positional2] -F --long-option-2 <option2>
For more information try --help'''

_required = '''The following required arguments were not supplied:
Expand All @@ -76,6 +85,7 @@
USAGE:
\tclaptests [positional2] -F --long-option-2 <option2>
For more information try --help'''

_fop = '''flag present 1 times
Expand Down Expand Up @@ -173,8 +183,10 @@
scpositional present with value: value'''

_min_vals_few = '''The argument '--minvals2 <minvals>...' requires at least 2 values, but 1 was provided
USAGE:
\tclaptests --minvals2 <minvals>...
For more information try --help'''

_exact = '''flag NOT present
Expand All @@ -201,19 +213,25 @@
positional present with value: too
subcmd NOT present'''

_mult_vals_more = '''Argument --multvals was supplied more than once, but does not support multiple values
_mult_vals_more = '''The argument --multvals was supplied more than once, but does not support multiple values
USAGE:
\tclaptests --multvals <one> <two>
For more information try --help'''

_mult_vals_few = '''Argument '--multvals <one> <two>' requires a value but none was supplied
_mult_vals_few = '''The argument '--multvals <one> <two>' requires a value but none was supplied
USAGE:
\tclaptests --multvals <one> <two>
For more information try --help'''

_mult_vals_2m1 = '''The argument '--multvalsmo <one> <two>' requires 2 values, but 1 was provided
USAGE:
claptests --multvalsmo <one> <two>
For more information try --help'''

_bin = './target/release/claptests'
Expand Down

0 comments on commit c445a10

Please sign in to comment.