MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_is_valid_command_valid

Function test_is_valid_command_valid

tests/test_parsing.py:962–971  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

960
961
962def 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
974def test_macro_normal_arg_pattern() -> None:

Callers

nothing calls this directly

Calls 1

is_valid_commandMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…