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

Method test_config_cache_mkdir

testing/test_cacheprovider.py:24–32  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

22
23class TestNewAPI:
24 def test_config_cache_mkdir(self, pytester: Pytester) -> None:
25 pytester.makeini("[pytest]")
26 config = pytester.parseconfigure()
27 assert config.cache is not None
28 with pytest.raises(ValueError):
29 config.cache.mkdir("key/name")
30
31 p = config.cache.mkdir("name")
32 assert p.is_dir()
33
34 def test_cache_dir_permissions(self, pytester: Pytester) -> None:
35 """The .pytest_cache directory should have world-readable permissions

Callers

nothing calls this directly

Calls 3

makeiniMethod · 0.45
parseconfigureMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected