claude-proxy / tests /scripts /conftest.py
dheraingoud's picture
Copilot App
Sync upstream v6.19.35 and preserve custom addons
a9e27c0
Raw History Blame Contribute Delete
355 Bytes
"""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")
)