MCPcopy
hub / github.com/agent0ai/agent-zero / fake_normalize_a0_path

Function fake_normalize_a0_path

tests/test_media_artifacts.py:48–49  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

46 return str(tmp_path.joinpath(*parts))
47
48 def fake_normalize_a0_path(path: str):
49 return "/a0/" + str(Path(path).relative_to(tmp_path)).replace("\\", "/")
50
51 monkeypatch.setattr(media_artifacts.files, "get_abs_path", fake_get_abs_path)
52 monkeypatch.setattr(media_artifacts.files, "normalize_a0_path", fake_normalize_a0_path)

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected