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

Method test_stat_helpers

testing/_py/test_local.py:1384–1391  ·  view source on GitHub ↗
(self, tmpdir, monkeypatch)

Source from the content-addressed store, hash-verified

1382 assert group == stat.group
1383
1384 def test_stat_helpers(self, tmpdir, monkeypatch):
1385 path1 = tmpdir.ensure("file")
1386 stat1 = path1.stat()
1387 stat2 = tmpdir.stat()
1388 assert stat1.isfile()
1389 assert stat2.isdir()
1390 assert not stat1.islink()
1391 assert not stat2.islink()
1392
1393 def test_stat_non_raising(self, tmpdir):
1394 path1 = tmpdir.join("file")

Callers

nothing calls this directly

Calls 5

ensureMethod · 0.80
statMethod · 0.80
isfileMethod · 0.45
isdirMethod · 0.45
islinkMethod · 0.45

Tested by

no test coverage detected