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

Method test_visit_filesonly

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

Source from the content-addressed store, hash-verified

324 assert obj.get("answer", None) == 42
325
326 def test_visit_filesonly(self, path1):
327 p = []
328 for i in path1.visit(lambda x: x.check(file=1)):
329 p.append(i.relto(path1))
330 assert "sampledir" not in p
331 assert path1.sep.join(["sampledir", "otherfile"]) in p
332
333 def test_visit_nodotfiles(self, path1):
334 p = []

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