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

Function _graph_file

tests/test_load_graph_release_rows.py:13–16  ·  view source on GitHub ↗
(tmp_path: Path, nodes: list, links: list)

Source from the content-addressed store, hash-verified

11
12
13def _graph_file(tmp_path: Path, nodes: list, links: list) -> Path:
14 path = tmp_path / "graph.json"
15 path.write_text(json.dumps({"directed": False, "multigraph": True, "graph": {}, "nodes": nodes, "links": links}))
16 return path
17
18
19def test_load_gives_the_same_graph_as_a_plain_load(tmp_path: Path) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected