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

Function test_to_json_valid_json

tests/test_export.py:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 assert out.exists()
22
23def test_to_json_valid_json():
24 G = make_graph()
25 communities = cluster(G)
26 with tempfile.TemporaryDirectory() as tmp:
27 out = Path(tmp) / "graph.json"
28 to_json(G, communities, str(out))
29 data = json.loads(out.read_text())
30 assert "nodes" in data
31 assert "links" in data
32
33
34def test_to_json_includes_graph_schema_metadata(tmp_path):

Callers

nothing calls this directly

Calls 3

clusterFunction · 0.90
to_jsonFunction · 0.90
make_graphFunction · 0.70

Tested by

no test coverage detected