(cmd2_app)
| 234 | |
| 235 | |
| 236 | def test_complete_bogus_command(cmd2_app) -> None: |
| 237 | text = "" |
| 238 | line = f"fizbuzz {text}" |
| 239 | endidx = len(line) |
| 240 | begidx = endidx - len(text) |
| 241 | |
| 242 | expected = ["default"] |
| 243 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 244 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 245 | |
| 246 | |
| 247 | def test_complete_exception(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…