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

Function test_path_complete

tests/test_commandset.py:982–993  ·  view source on GitHub ↗
(manual_command_sets_app)

Source from the content-addressed store, hash-verified

980
981
982def test_path_complete(manual_command_sets_app) -> None:
983 test_set = CommandSetWithPathComplete(1)
984
985 manual_command_sets_app.register_command_set(test_set)
986
987 text = ""
988 line = f"path {text}"
989 endidx = len(line)
990 begidx = endidx
991 completions = manual_command_sets_app.complete(text, line, begidx, endidx)
992
993 assert completions
994
995
996def test_bad_subcommand() -> None:

Callers

nothing calls this directly

Calls 3

register_command_setMethod · 0.80
completeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…