(cmd2_app)
| 311 | |
| 312 | |
| 313 | def test_help_completion_empty_arg(cmd2_app) -> None: |
| 314 | text = "" |
| 315 | line = f"help {text}" |
| 316 | endidx = len(line) |
| 317 | begidx = endidx - len(text) |
| 318 | |
| 319 | expected = cmd2_app.get_visible_commands() |
| 320 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 321 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 322 | |
| 323 | |
| 324 | def test_help_completion_nomatch(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…