Redirect credentials storage to a test-local directory.
(monkeypatch: object, tmp_path: Path, subdir: str = ".opentrace")
| 50 | |
| 51 | |
| 52 | def _patch_base_dir(monkeypatch: object, tmp_path: Path, subdir: str = ".opentrace") -> Path: |
| 53 | """Redirect credentials storage to a test-local directory.""" |
| 54 | base = tmp_path / subdir |
| 55 | base.mkdir(parents=True, exist_ok=True) |
| 56 | monkeypatch.setattr(credentials, "_base_dir", lambda: base) |
| 57 | return base |
| 58 | |
| 59 | |
| 60 | def _make_repo(base: Path) -> Path: |
no outgoing calls
no test coverage detected