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

Function test_help_completion_empty_arg

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

Source from the content-addressed store, hash-verified

311
312
313def test_help_completion_empty_arg(cmd2_app) -> None:
314 text = ""
315 line = f"help {text}"
316 endidx = len(line)
317 begidx = endidx - len(text)
318
319 expected = cmd2_app.get_visible_commands()
320 completions = cmd2_app.complete(text, line, begidx, endidx)
321 assert completions.to_strings() == Completions.from_values(expected).to_strings()
322
323
324def test_help_completion_nomatch(cmd2_app) -> None:

Callers

nothing calls this directly

Calls 4

get_visible_commandsMethod · 0.80
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…