Confirm that completing a boolean Settable presents true and false strings
(cmd2_app)
| 344 | |
| 345 | |
| 346 | def test_set_bool_completion(cmd2_app) -> None: |
| 347 | """Confirm that completing a boolean Settable presents true and false strings""" |
| 348 | text = "" |
| 349 | line = "set debug" |
| 350 | endidx = len(line) |
| 351 | begidx = endidx - len(text) |
| 352 | |
| 353 | expected = ["false", "true"] |
| 354 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 355 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 356 | |
| 357 | |
| 358 | def test_shell_command_completion_shortcut(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…