File size: 355 Bytes
a9e27c0
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Keep caches from CI-script subprocess tests outside the checkout."""

from pathlib import Path

import pytest


@pytest.fixture(autouse=True)
def _isolate_powershell_module_cache(
    monkeypatch: pytest.MonkeyPatch, tmp_path: Path
) -> None:
    monkeypatch.setenv(
        "PSModuleAnalysisCachePath", str(tmp_path / "powershell-module-cache")
    )