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

Method test_dir

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

Source from the content-addressed store, hash-verified

123 assert not path1.join("samplefile").isdir()
124
125 def test_dir(self, path1):
126 # print repr(path1.join("sampledir"))
127 assert path1.join("sampledir").check(dir=1)
128 assert path1.join("samplefile").check(notdir=1)
129 assert not path1.join("samplefile").check(dir=1)
130 assert path1.join("samplefile").exists()
131 assert not path1.join("samplefile").isdir()
132 assert path1.join("samplefile").isfile()
133
134 def test_fnmatch_file(self, path1):
135 assert path1.join("samplefile").check(fnmatch="s*e")

Callers

nothing calls this directly

Calls 5

joinMethod · 0.80
checkMethod · 0.45
existsMethod · 0.45
isdirMethod · 0.45
isfileMethod · 0.45

Tested by

no test coverage detected