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

Method test_visit_endswith

testing/_py/test_local.py:222–227  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

220 assert list(p.visit(ignore=error.ENOENT)) == []
221
222 def test_visit_endswith(self, path1):
223 p = []
224 for i in path1.visit(lambda x: x.check(endswith="file")):
225 p.append(i.relto(path1))
226 assert path1.sep.join(["sampledir", "otherfile"]) in p
227 assert "samplefile" in p
228
229 def test_cmp(self, path1):
230 path1 = path1.join("samplefile")

Callers

nothing calls this directly

Calls 5

visitMethod · 0.80
appendMethod · 0.80
joinMethod · 0.80
checkMethod · 0.45
reltoMethod · 0.45

Tested by

no test coverage detected