mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add test case for cmd_runner_fmt.as_list() (#8541)
This commit is contained in:
parent
ecb68aa5d2
commit
60ba7cab93
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ TC_FORMATS = dict(
|
||||||
simple_opt_val__int=(partial(cmd_runner_fmt.as_opt_val, "-t"), 42, ["-t", "42"], None),
|
simple_opt_val__int=(partial(cmd_runner_fmt.as_opt_val, "-t"), 42, ["-t", "42"], None),
|
||||||
simple_opt_eq_val__str=(partial(cmd_runner_fmt.as_opt_eq_val, "--food"), "potatoes", ["--food=potatoes"], None),
|
simple_opt_eq_val__str=(partial(cmd_runner_fmt.as_opt_eq_val, "--food"), "potatoes", ["--food=potatoes"], None),
|
||||||
simple_opt_eq_val__int=(partial(cmd_runner_fmt.as_opt_eq_val, "--answer"), 42, ["--answer=42"], None),
|
simple_opt_eq_val__int=(partial(cmd_runner_fmt.as_opt_eq_val, "--answer"), 42, ["--answer=42"], None),
|
||||||
|
simple_list_empty=(cmd_runner_fmt.as_list, [], [], None),
|
||||||
simple_list_potato=(cmd_runner_fmt.as_list, "literal_potato", ["literal_potato"], None),
|
simple_list_potato=(cmd_runner_fmt.as_list, "literal_potato", ["literal_potato"], None),
|
||||||
simple_list_42=(cmd_runner_fmt.as_list, 42, ["42"], None),
|
simple_list_42=(cmd_runner_fmt.as_list, 42, ["42"], None),
|
||||||
simple_list_min_len_ok=(partial(cmd_runner_fmt.as_list, min_len=1), 42, ["42"], None),
|
simple_list_min_len_ok=(partial(cmd_runner_fmt.as_list, min_len=1), 42, ["42"], None),
|
||||||
|
|
Loading…
Reference in a new issue