()
| 30 | |
| 31 | |
| 32 | def test_command(): |
| 33 | cli = Command("cli", params=[Option(["-t", "--test"])]) |
| 34 | assert _get_words(cli, [], "") == [] |
| 35 | assert _get_words(cli, [], "-") == ["-t", "--test", "--help"] |
| 36 | assert _get_words(cli, [], "--") == ["--test", "--help"] |
| 37 | assert _get_words(cli, [], "--t") == ["--test"] |
| 38 | # -t has been seen, so --test isn't suggested |
| 39 | assert _get_words(cli, ["-t", "a"], "-") == ["--help"] |
| 40 | |
| 41 | |
| 42 | def test_group(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…