MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _write

Function _write

tests/test_python_inherited_method_calls.py:28–36  ·  view source on GitHub ↗
(root: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

26
27
28def _write(root: Path, files: dict[str, str]) -> list[Path]:
29 files = {"pkg/__init__.py": "", **{f"pkg/{n}": b for n, b in files.items()}}
30 paths = []
31 for name, body in files.items():
32 p = root / name
33 p.parent.mkdir(parents=True, exist_ok=True)
34 p.write_text(body, encoding="utf-8")
35 paths.append(p)
36 return paths
37
38
39def _calls(tmp_path, files: dict[str, str]):

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected