(cmd2_app)
| 616 | |
| 617 | |
| 618 | def test_basic_completion(cmd2_app) -> None: |
| 619 | text = "P" |
| 620 | line = f"list_food -f {text}" |
| 621 | endidx = len(line) |
| 622 | begidx = endidx - len(text) |
| 623 | |
| 624 | expected = ["Pizza", "Potato"] |
| 625 | completions = cmd2_app.basic_complete(text, line, begidx, endidx, food_item_strs) |
| 626 | assert completions.to_strings() == Completions.from_values(expected).to_strings() |
| 627 | |
| 628 | |
| 629 | def test_basic_completion_nomatch(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…