[tests] Check that UIDs are identical when writing and loading a graph

This commit is contained in:
Candice Bentéjac 2022-09-26 18:18:14 +02:00
parent 1a63a5f819
commit 5b45182bcb

View file

@ -115,3 +115,5 @@ def test_multiviewPipeline():
assert sorted([n.name for n in loadedGraph.nodes]) == sorted([n.name for n in graph.nodes])
# - no compatibility issues
assert all(isinstance(n, Node) for n in loadedGraph.nodes)
# - same UIDs for every node
assert sorted([n._uids.get(0) for n in loadedGraph.nodes]) == sorted([n._uids.get(0) for n in graph.nodes])