(cmd2_app)
| 210 | |
| 211 | |
| 212 | def test_command_completion(cmd2_app) -> None: |
| 213 | text = "run" |
| 214 | line = text |
| 215 | endidx = len(line) |
| 216 | begidx = endidx - len(text) |
| 217 | |
| 218 | expected = ["run_pyscript", "run_script"] |
| 219 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 220 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 221 | |
| 222 | |
| 223 | def test_command_completion_nomatch(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…