MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_remove_dir_prefix

Method test_remove_dir_prefix

testing/test_argcomplete.py:88–95  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

86
87 @pytest.mark.skipif("sys.platform in ('win32', 'darwin')")
88 def test_remove_dir_prefix(self):
89 """This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>."""
90 from _pytest._argcomplete import FastFilesCompleter
91
92 ffc = FastFilesCompleter()
93 fc = FilesCompleter()
94 for x in "/usr/".split():
95 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