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

Function test_parse_command_only_strips_line

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

Source from the content-addressed store, hash-verified

755
756
757def test_parse_command_only_strips_line(parser) -> None:
758 line = " help history "
759 partial_statement = parser.parse_command_only(line)
760 assert partial_statement.command == "help"
761 assert partial_statement.args == "history"
762 assert partial_statement.raw == line
763 assert not partial_statement.multiline_command
764 assert partial_statement.command_and_args == line.strip()
765
766
767def test_parse_command_only_expands_alias(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…