Skip to content
Snippets Groups Projects
Commit 5d58f808 authored by inso's avatar inso
Browse files

Fix tests

parent 9ca44b6f
No related branches found
No related tags found
No related merge requests found
...@@ -133,10 +133,10 @@ class TestWotGraph(unittest.TestCase, QuamashTest): ...@@ -133,10 +133,10 @@ class TestWotGraph(unittest.TestCase, QuamashTest):
self.assertTrue(result) self.assertTrue(result)
self.assertEqual(len(wot_graph.nx_graph.nodes()), 3) self.assertEqual(len(wot_graph.nx_graph.nodes()), 3)
self.assertEqual(len(wot_graph.nx_graph.edges()), 2) self.assertEqual(len(wot_graph.nx_graph.edges()), 2)
path = await wot_graph.get_shortest_path_to_identity(self.idC, self.account_identity) path = await wot_graph.get_shortest_path_to_identity(self.account_identity, self.idC)
self.assertEqual(path[0], self.idC.pubkey) self.assertEqual(path[0], self.account_identity.pubkey,)
self.assertEqual(path[1], self.idB.pubkey) self.assertEqual(path[1], self.idB.pubkey)
self.assertEqual(path[2], self.account_identity.pubkey) self.assertEqual(path[2], self.idC.pubkey)
self.lp.run_until_complete(exec_test()) self.lp.run_until_complete(exec_test())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment