Isolated temporary cache directory for each test. Sets SOLEXECBENCH_CACHE_PATH so every builder writes build artifacts into a fresh temp directory, preventing pollution between tests.
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
| 75 | |
| 76 | @pytest.fixture |
| 77 | def tmp_cache_dir(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path: |
| 78 | """Isolated temporary cache directory for each test. |
| 79 | |
| 80 | Sets SOLEXECBENCH_CACHE_PATH so every builder writes build artifacts into a |
| 81 | fresh temp directory, preventing pollution between tests. |
| 82 | """ |
| 83 | cache_dir = tmp_path / "cache" |
| 84 | cache_dir.mkdir(parents=True, exist_ok=True) |
| 85 | monkeypatch.setenv("SOLEXECBENCH_CACHE_PATH", str(cache_dir)) |
| 86 | return cache_dir |
nothing calls this directly
no outgoing calls
no test coverage detected