(args: list[str], word: str, expect: list[str])
| 57 | ], |
| 58 | ) |
| 59 | def test_nested_group(args: list[str], word: str, expect: list[str]) -> None: |
| 60 | cli = Group( |
| 61 | "cli", |
| 62 | commands=[ |
| 63 | Group( |
| 64 | "get", |
| 65 | commands=[ |
| 66 | Group( |
| 67 | "full", |
| 68 | params=[Option(["--verbose"])], |
| 69 | commands=[Command("data", params=[Option(["-a"])])], |
| 70 | ) |
| 71 | ], |
| 72 | ) |
| 73 | ], |
| 74 | ) |
| 75 | assert _get_words(cli, args, word) == expect |
| 76 | |
| 77 | |
| 78 | def test_group_command_same_option(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…