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

Function test_parse_command_only_expands_shortcuts

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

Source from the content-addressed store, hash-verified

775
776
777def test_parse_command_only_expands_shortcuts(parser) -> None:
778 line = "!cat foobar.txt"
779 partial_statement = parser.parse_command_only(line)
780 assert partial_statement.command == "shell"
781 assert partial_statement.args == "cat foobar.txt"
782 assert partial_statement.raw == line
783 assert not partial_statement.multiline_command
784 assert partial_statement.command_and_args == "shell cat foobar.txt"
785
786
787def test_parse_command_only_quoted_args(parser) -> None:

Callers

nothing calls this directly

Calls 1

parse_command_onlyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…