Confirm that completing allow_style presents AllowStyle strings
(cmd2_app)
| 332 | |
| 333 | |
| 334 | def test_set_allow_style_completion(cmd2_app) -> None: |
| 335 | """Confirm that completing allow_style presents AllowStyle strings""" |
| 336 | text = "" |
| 337 | line = "set allow_style" |
| 338 | endidx = len(line) |
| 339 | begidx = endidx - len(text) |
| 340 | |
| 341 | expected = [val.name.lower() for val in cmd2.rich_utils.AllowStyle] |
| 342 | completions = cmd2_app.complete(text, line, begidx, endidx) |
| 343 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 344 | |
| 345 | |
| 346 | def test_set_bool_completion(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…