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

Function test_graph_diff_new_nodes

tests/test_analyze.py:301–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300
301def test_graph_diff_new_nodes():
302 G_old = _make_simple_graph([("n1", "Alpha"), ("n2", "Beta")], [])
303 G_new = _make_simple_graph([("n1", "Alpha"), ("n2", "Beta"), ("n3", "Gamma")], [])
304 diff = graph_diff(G_old, G_new)
305 assert len(diff["new_nodes"]) == 1
306 assert diff["new_nodes"][0]["id"] == "n3"
307 assert diff["new_nodes"][0]["label"] == "Gamma"
308 assert diff["removed_nodes"] == []
309 assert "1 new node" in diff["summary"]
310
311
312def test_graph_diff_removed_nodes():

Callers

nothing calls this directly

Calls 2

graph_diffFunction · 0.90
_make_simple_graphFunction · 0.85

Tested by

no test coverage detected