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

Method test_sysfind

testing/_py/test_local.py:849–856  ·  testing/_py/test_local.py::TestLocalPath.test_sysfind
(self)

Source from the content-addressed store, hash-verified

847 assert b.fnmatch(pattern)
848
849 def test_sysfind(self):
850 name = (sys.platform == class="st">"win32" and class="st">"cmd") or class="st">"test"
851 x = local.sysfind(name)
852 assert x.check(file=1)
853 assert local.sysfind(class="st">"jaksdkasldqwe") is None
854 assert local.sysfind(name, paths=[]) is None
855 x2 = local.sysfind(name, paths=[x.dirpath()])
856 assert x2 == x
857
858 def test_fspath_protocol_other_class(self, fake_fspath_obj):
859 class="cm"># py.path is always absolute

Callers

nothing calls this directly

Calls 3

sysfindMethod · 0.80
dirpathMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected