MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_realpath_file

Method test_realpath_file

testing/_py/test_local.py:1359–1365  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

1357 assert not linkpath.check()
1358
1359 def test_realpath_file(self, tmpdir):
1360 linkpath = tmpdir.join("test")
1361 filepath = tmpdir.join("file")
1362 filepath.write_text("", encoding="utf-8")
1363 linkpath.mksymlinkto(filepath)
1364 realpath = linkpath.realpath()
1365 assert realpath.basename == "file"
1366
1367 def test_owner(self, path1, tmpdir):
1368 from grp import getgrgid # type:ignore[attr-defined,unused-ignore]

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
write_textMethod · 0.80
mksymlinktoMethod · 0.80
realpathMethod · 0.80

Tested by

no test coverage detected