MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / test_parse_single_word

Function test_parse_single_word

tests/test_parsing.py:137–150  ·  view source on GitHub ↗
(parser, line)

Source from the content-addressed store, hash-verified

135 ],
136)
137def test_parse_single_word(parser, line) -> None:
138 statement = parser.parse(line)
139 assert statement.command == line
140 assert statement == ""
141 assert statement.args == statement
142 assert statement.argv == [su.strip_quotes(line)]
143 assert not statement.arg_list
144 assert statement.raw == line
145 assert not statement.multiline_command
146 assert statement.terminator == ""
147 assert statement.suffix == ""
148 assert statement.redirector == ""
149 assert statement.redirect_to == ""
150 assert statement.command_and_args == line
151
152
153@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…