MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / lock_path

Function lock_path

tests/test_oauth_codex.py:26–28  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

24@pytest.fixture(autouse=True)
25def 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

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected