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

Method test_visit_norecurse

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

Source from the content-addressed store, hash-verified

201 assert path1.sep.join(["sampledir", "otherfile"]) in lst
202
203 def test_visit_norecurse(self, path1):
204 lst = []
205 for i in path1.visit(None, lambda x: x.basename != "sampledir"):
206 lst.append(i.relto(path1))
207 assert "sampledir" in lst
208 assert path1.sep.join(["sampledir", "otherfile"]) not in lst
209
210 def test_visit_filterfunc_is_string(self, path1):
211 lst = []

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected