MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_make

Method test_make

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

Source from the content-addressed store, hash-verified

233 PREFIX = "fun-"
234
235 def test_make(self, tmp_path):
236 for i in range(10):
237 d = make_numbered_dir(root=tmp_path, prefix=self.PREFIX)
238 assert d.name.startswith(self.PREFIX)
239 assert d.name.endswith(str(i))
240
241 symlink = tmp_path.joinpath(self.PREFIX + "current")
242 if symlink.exists():
243 # unix
244 assert symlink.is_symlink()
245 assert symlink.resolve() == d.resolve()
246
247 def test_cleanup_lock_create(self, tmp_path):
248 d = tmp_path.joinpath("test")

Callers 1

_do_cleanupMethod · 0.95

Calls 1

make_numbered_dirFunction · 0.90

Tested by

no test coverage detected