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

Function test_command_and_args

tests/test_parsing.py:123–126  ·  view source on GitHub ↗
(parser, tokens, command, args)

Source from the content-addressed store, hash-verified

121 [([], "", ""), (["command"], "command", ""), (["command", "arg1", "arg2"], "command", "arg1 arg2")],
122)
123def test_command_and_args(parser, tokens, command, args) -> None:
124 (parsed_command, parsed_args) = parser._command_and_args(tokens)
125 assert command == parsed_command
126 assert args == parsed_args
127
128
129@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

_command_and_argsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…