(
self, pytester: Pytester, tmp_path_factory: TempPathFactory
)
| 143 | assert pytester.path.joinpath(rel_cache_dir).is_dir() |
| 144 | |
| 145 | def test_custom_abs_cache_dir( |
| 146 | self, pytester: Pytester, tmp_path_factory: TempPathFactory |
| 147 | ) -> None: |
| 148 | tmp = tmp_path_factory.mktemp("tmp") |
| 149 | abs_cache_dir = tmp / "custom_cache_dir" |
| 150 | pytester.makeini( |
| 151 | """ |
| 152 | [pytest] |
| 153 | cache_dir = {cache_dir} |
| 154 | """.format( |
| 155 | cache_dir=abs_cache_dir |
| 156 | ) |
| 157 | ) |
| 158 | pytester.makepyfile(test_errored="def test_error():\n assert False") |
| 159 | pytester.runpytest() |
| 160 | assert abs_cache_dir.is_dir() |
| 161 | |
| 162 | def test_custom_cache_dir_with_env_var( |
| 163 | self, pytester: Pytester, monkeypatch: MonkeyPatch |
nothing calls this directly
no test coverage detected