This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>.
(self)
| 90 | |
| 91 | @pytest.mark.skipif(class="st">"sys.platform in (&class="cm">#x27;win32', 'darwin')") |
| 92 | def test_remove_dir_prefix(self): |
| 93 | class="st">""class="st">"This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>."class="st">"" |
| 94 | from _pytest._argcomplete import FastFilesCompleter |
| 95 | |
| 96 | ffc = FastFilesCompleter() |
| 97 | fc = FilesCompleter() |
| 98 | for x in class="st">"/usr/".split(): |
| 99 | assert not equal_with_bash(x, ffc, fc, out=sys.stdout) |
nothing calls this directly
no test coverage detected