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

Method test_make

testing/test_tmpdir.py:439–449  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

437 PREFIX = "fun-"
438
439 def test_make(self, tmp_path):
440 for i in range(10):
441 d = make_numbered_dir(root=tmp_path, prefix=self.PREFIX)
442 assert d.name.startswith(self.PREFIX)
443 assert d.name.endswith(str(i))
444
445 symlink = tmp_path.joinpath(self.PREFIX + "current")
446 if symlink.exists():
447 # unix
448 assert symlink.is_symlink()
449 assert symlink.resolve() == d.resolve()
450
451 def test_cleanup_lock_create(self, tmp_path):
452 d = tmp_path.joinpath("test")

Callers 1

_do_cleanupMethod · 0.95

Calls 3

make_numbered_dirFunction · 0.90
endswithMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected