From 5b45182bcb49abdbc1e47e1695f9b3c610bcee42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Mon, 26 Sep 2022 18:18:14 +0200 Subject: [PATCH] [tests] Check that UIDs are identical when writing and loading a graph --- tests/test_multiviewPipeline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_multiviewPipeline.py b/tests/test_multiviewPipeline.py index 4c072fba..f7750a02 100644 --- a/tests/test_multiviewPipeline.py +++ b/tests/test_multiviewPipeline.py @@ -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])