(
self, tmp_path: Path, monkeypatch: MonkeyPatch
)
| 72 | class TestArgComplete: |
| 73 | @pytest.mark.skipif("sys.platform in ('win32', 'darwin')") |
| 74 | def test_compare_with_compgen( |
| 75 | self, tmp_path: Path, monkeypatch: MonkeyPatch |
| 76 | ) -> None: |
| 77 | from _pytest._argcomplete import FastFilesCompleter |
| 78 | |
| 79 | ffc = FastFilesCompleter() |
| 80 | fc = FilesCompleter() |
| 81 | |
| 82 | monkeypatch.chdir(tmp_path) |
| 83 | |
| 84 | assert equal_with_bash("", ffc, fc, out=sys.stdout) |
| 85 | |
| 86 | tmp_path.cwd().joinpath("data").touch() |
| 87 | |
| 88 | for x in ["d", "data", "doesnotexist", ""]: |
| 89 | assert equal_with_bash(x, ffc, fc, out=sys.stdout) |
| 90 | |
| 91 | @pytest.mark.skipif("sys.platform in ('win32', 'darwin')") |
| 92 | def test_remove_dir_prefix(self): |
nothing calls this directly
no test coverage detected