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

Function test_path_completion_nomatch

tests/test_completion.py:476–486  ·  view source on GitHub ↗
(cmd2_app, request)

Source from the content-addressed store, hash-verified

474
475
476def test_path_completion_nomatch(cmd2_app, request) -> None:
477 test_dir = os.path.dirname(request.module.__file__)
478
479 text = os.path.join(test_dir, "fakepath")
480 line = f"shell cat {text}"
481
482 endidx = len(line)
483 begidx = endidx - len(text)
484
485 completions = cmd2_app.path_complete(text, line, begidx, endidx)
486 assert not completions
487
488
489def test_path_completion_no_text(cmd2_app) -> None:

Callers

nothing calls this directly

Calls 1

path_completeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…