(cmd2_app, request)
| 474 | |
| 475 | |
| 476 | def test_path_completion_nomatch(cmd2_app, request) -> None: |
| 477 | test_dir = os.path.dirname(request.module.__file__) |
| 478 | |
| 479 | text = os.path.join(test_dir, "fakepath") |
| 480 | line = f"shell cat {text}" |
| 481 | |
| 482 | endidx = len(line) |
| 483 | begidx = endidx - len(text) |
| 484 | |
| 485 | completions = cmd2_app.path_complete(text, line, begidx, endidx) |
| 486 | assert not completions |
| 487 | |
| 488 | |
| 489 | def test_path_completion_no_text(cmd2_app) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…