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

Function test_complete_command_no_tokens

tests/test_argparse_completer.py:1113–1122  ·  view source on GitHub ↗
(ac_app)

Source from the content-addressed store, hash-verified

1111
1112
1113def test_complete_command_no_tokens(ac_app) -> None:
1114 from cmd2.argparse_completer import (
1115 ArgparseCompleter,
1116 )
1117
1118 parser = Cmd2ArgumentParser()
1119 ac = ArgparseCompleter(parser, ac_app)
1120
1121 completions = ac.complete(text="", line="", begidx=0, endidx=0, tokens=[])
1122 assert not completions
1123
1124
1125def test_complete_command_help_no_tokens(ac_app) -> None:

Callers

nothing calls this directly

Calls 3

completeMethod · 0.95
Cmd2ArgumentParserClass · 0.90
ArgparseCompleterClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…