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

Function test_graph_diff_removed_nodes

tests/test_analyze.py:312–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310
311
312def test_graph_diff_removed_nodes():
313 G_old = _make_simple_graph([("n1", "Alpha"), ("n2", "Beta"), ("n3", "Gamma")], [])
314 G_new = _make_simple_graph([("n1", "Alpha"), ("n2", "Beta")], [])
315 diff = graph_diff(G_old, G_new)
316 assert diff["new_nodes"] == []
317 assert len(diff["removed_nodes"]) == 1
318 assert diff["removed_nodes"][0]["id"] == "n3"
319 assert "removed" in diff["summary"]
320
321
322def test_graph_diff_new_edges():

Callers

nothing calls this directly

Calls 2

graph_diffFunction · 0.90
_make_simple_graphFunction · 0.85

Tested by

no test coverage detected