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

Function test_parse_command_only_unclosed_quote

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

Source from the content-addressed store, hash-verified

795
796
797def test_parse_command_only_unclosed_quote(parser) -> None:
798 # Quoted trailing spaces will be preserved
799 line = 'command with unclosed "quote '
800 partial_statement = parser.parse_command_only(line)
801 assert partial_statement.command == "command"
802 assert partial_statement.args == 'with unclosed "quote '
803 assert partial_statement.raw == line
804 assert not partial_statement.multiline_command
805 assert partial_statement.command_and_args == line
806
807
808@pytest.mark.parametrize(

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…