MCPcopy
hub / github.com/pytest-dev/pytest / test_remove_dir_prefix

Method test_remove_dir_prefix

testing/test_argcomplete.py:92–99  ·  testing/test_argcomplete.py::TestArgComplete.test_remove_dir_prefix

This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>.

(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

FastFilesCompleterClass · 0.90
FilesCompleterClass · 0.85
equal_with_bashFunction · 0.85

Tested by

no test coverage detected