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

Method test_visit_sort

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

Source from the content-addressed store, hash-verified

351 pytest.fail("huh")
352
353 def test_visit_sort(self, path1):
354 lst = []
355 for i in path1.visit(bf=True, sort=True):
356 lst.append(i.relto(path1))
357 for i, p in enumerate(lst):
358 if path1.sep in p:
359 break
360 assert lst[:i] == sorted(lst[:i])
361 assert lst[i:] == sorted(lst[i:])
362
363 def test_endswith(self, path1):
364 def chk(p):

Callers

nothing calls this directly

Calls 3

visitMethod · 0.80
appendMethod · 0.80
reltoMethod · 0.45

Tested by

no test coverage detected