(self, pytester: Pytester)
| 22 | |
| 23 | class 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 |
nothing calls this directly
no test coverage detected