From 29bba935a5513ff13218b3abe07644f45b031f2a Mon Sep 17 00:00:00 2001 From: James Corbett Date: Tue, 17 Sep 2024 15:05:51 -0700 Subject: [PATCH] test: fix broken resourcegraph test Problem: t10001-resourcegraph.py expects JGF graphs to be directed. Drop the checks for directed-ness. --- t/python/t10001-resourcegraph.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/t/python/t10001-resourcegraph.py b/t/python/t10001-resourcegraph.py index bd15648c6..b10fc0f14 100755 --- a/t/python/t10001-resourcegraph.py +++ b/t/python/t10001-resourcegraph.py @@ -68,10 +68,8 @@ def _check_metadata(self, metadata): def test_basic(self): graph = FluxionResourceGraphV1(RV1) - self.assertTrue(graph.is_directed()) j = graph.to_JSON() json.dumps(j) # make sure it doesn't throw an error - self.assertTrue(j["graph"]["directed"]) self.assertEqual(len(j["graph"]["nodes"]), len(graph.get_nodes())) self.assertEqual(len(j["graph"]["edges"]), len(graph.get_edges())) for node in graph.get_nodes(): @@ -79,10 +77,8 @@ def test_basic(self): def test_basic_2(self): graph = FluxionResourceGraphV1(RV1_2) - self.assertTrue(graph.is_directed()) j = graph.to_JSON() json.dumps(j) - self.assertTrue(j["graph"]["directed"]) self.assertEqual(len(j["graph"]["nodes"]), len(graph.get_nodes())) self.assertEqual(len(j["graph"]["edges"]), len(graph.get_edges())) for node in graph.get_nodes(): @@ -90,9 +86,7 @@ def test_basic_2(self): def test_basic_3(self): graph = FluxionResourceGraphV1(RV1_3) - self.assertTrue(graph.is_directed()) j = graph.to_JSON() - self.assertTrue(j["graph"]["directed"]) self.assertEqual(len(j["graph"]["nodes"]), len(graph.get_nodes())) self.assertEqual(len(j["graph"]["edges"]), len(graph.get_edges())) for node in graph.get_nodes():