()
| 299 | |
| 300 | |
| 301 | def 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 | |
| 312 | def test_graph_diff_removed_nodes(): |
nothing calls this directly
no test coverage detected