(parser)
| 960 | |
| 961 | |
| 962 | def test_is_valid_command_valid(parser) -> None: |
| 963 | # Valid command |
| 964 | valid, errmsg = parser.is_valid_command("shell") |
| 965 | assert valid |
| 966 | assert not errmsg |
| 967 | |
| 968 | # Subcommands can start with shortcut |
| 969 | valid, errmsg = parser.is_valid_command("!subcmd", is_subcommand=True) |
| 970 | assert valid |
| 971 | assert not errmsg |
| 972 | |
| 973 | |
| 974 | def test_macro_normal_arg_pattern() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…