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

Method test_config_cache_mkdir

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

Source from the content-addressed store, hash-verified

15
16class TestNewAPI:
17 def test_config_cache_mkdir(self, pytester: Pytester) -> None:
18 pytester.makeini("[pytest]")
19 config = pytester.parseconfigure()
20 assert config.cache is not None
21 with pytest.raises(ValueError):
22 config.cache.mkdir("key/name")
23
24 p = config.cache.mkdir("name")
25 assert p.is_dir()
26
27 def test_config_cache_dataerror(self, pytester: Pytester) -> None:
28 pytester.makeini("[pytest]")

Callers

nothing calls this directly

Calls 3

makeiniMethod · 0.45
parseconfigureMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected