(path: Path)
| 24 | @pytest.fixture(autouse=True) |
| 25 | def use_temporary_auth_locks(tmp_path, monkeypatch): |
| 26 | def lock_path(path: Path) -> Path: |
| 27 | digest = codex.hashlib.sha256(codex._path_key(path).encode("utf-8")).hexdigest() |
| 28 | return tmp_path / "locks" / f"{digest}.lock" |
| 29 | |
| 30 | monkeypatch.setattr(codex, "_auth_lock_path", lock_path) |
| 31 |