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

Function _write_fixture

tests/test_rust_use_self_module.py:10–20  ·  view source on GitHub ↗
(
    root: Path,
    files: dict[str, str],
    cargo_toml: str | None = None,
)

Source from the content-addressed store, hash-verified

8
9
10def _write_fixture(
11 root: Path,
12 files: dict[str, str],
13 cargo_toml: str | None = None,
14) -> None:
15 if cargo_toml is not None:
16 (root / "Cargo.toml").write_text(cargo_toml, encoding="utf-8")
17 for relative, body in files.items():
18 path = root / relative
19 path.parent.mkdir(parents=True, exist_ok=True)
20 path.write_text(body, encoding="utf-8")
21
22
23def _extract_fixture(

Callers 1

_extract_fixtureFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected