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

Method test_visit_nodotfiles

testing/_py/test_local.py:333–339  ·  testing/_py/test_local.py::CommonFSTests.test_visit_nodotfiles
(self, path1)

Source from the content-addressed store, hash-verified

331 assert path1.sep.join([class="st">"sampledir", class="st">"otherfile"]) in p
332
333 def test_visit_nodotfiles(self, path1):
334 p = []
335 for i in path1.visit(lambda x: x.check(dotfile=0)):
336 p.append(i.relto(path1))
337 assert class="st">"sampledir" in p
338 assert path1.sep.join([class="st">"sampledir", class="st">"otherfile"]) in p
339 assert class="st">".dotfile" not in p
340
341 def test_visit_breadthfirst(self, path1):
342 lst = []

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