(cmd2_app)
| 300 | |
| 301 | |
| 302 | def test_help_completion(cmd2_app) -> None: |
| 303 | text = "h" |
| 304 | line = f"help {text}" |
| 305 | endidx = len(line) |
| 306 | begidx = endidx - len(text) |
| 307 | |
| 308 | expected = ["help", "history"] |
| 309 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 310 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 311 | |
| 312 | |
| 313 | def test_help_completion_empty_arg(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…