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

Function test_complete_bogus_command

tests/test_completion.py:236–244  ·  view source on GitHub ↗
(cmd2_app)

Source from the content-addressed store, hash-verified

234
235
236def test_complete_bogus_command(cmd2_app) -> None:
237 text = ""
238 line = f"fizbuzz {text}"
239 endidx = len(line)
240 begidx = endidx - len(text)
241
242 expected = ["default"]
243 completions = cmd2_app.complete(text, line, begidx, endidx)
244 assert completions.to_strings() == Completions.from_values(expected).to_strings()
245
246
247def test_complete_exception(cmd2_app) -> None:

Callers

nothing calls this directly

Calls 3

to_stringsMethod · 0.80
from_valuesMethod · 0.80
completeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…