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

Function test_complete_exception

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

Source from the content-addressed store, hash-verified

245
246
247def test_complete_exception(cmd2_app) -> None:
248 text = ""
249 line = f"test_raise_exception {text}"
250 endidx = len(line)
251 begidx = endidx - len(text)
252
253 completions = cmd2_app.complete(text, line, begidx, endidx)
254
255 assert not completions
256 assert "IndexError" in completions.error
257
258
259def test_complete_macro(base_app, request) -> None:

Callers

nothing calls this directly

Calls 1

completeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…