(cmd2_app)
| 221 | |
| 222 | |
| 223 | def test_command_completion_nomatch(cmd2_app) -> None: |
| 224 | text = "fakecommand" |
| 225 | line = text |
| 226 | endidx = len(line) |
| 227 | begidx = endidx - len(text) |
| 228 | |
| 229 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 230 | assert not completions |
| 231 | |
| 232 | # ArgparseCompleter raises a _NoResultsError in this case |
| 233 | assert "Hint" in completions.error |
| 234 | |
| 235 | |
| 236 | def test_complete_bogus_command(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…