Skip to content

Commit bdd02ed

Browse files
Update tests/test.py
Correct references to nodes that were previously hard-coded.
1 parent 98786c9 commit bdd02ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ def test_02_dag(self):
252252
log.debug("Check attributes")
253253
self.assertEqual(nx_out.graph, {"test": "test"})
254254
self.assertEqual(nx_out.nodes[root.pk], {"id": root.pk, "name": "root"})
255-
self.assertEqual(nx_out.edges[root.pk, a3.pk], {"id": NetworkEdge.objects.get(parent=root, child=a3).pk, "name": "root a3"})
255+
self.assertEqual(
256+
nx_out.edges[root.pk, a3.pk], {"id": NetworkEdge.objects.get(parent=root, child=a3).pk, "name": "root a3"}
257+
)
256258

257259
"""
258260
Simulate a basic irrigation canal network

0 commit comments

Comments
 (0)