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

Fix wot tests

parent 50b64c7e
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ class TestWotGraph(unittest.TestCase, QuamashTest): ...@@ -62,7 +62,7 @@ class TestWotGraph(unittest.TestCase, QuamashTest):
{ {
'cert_time': 49100, 'cert_time': 49100,
'identity': self.idC, 'identity': self.idC,
'block_number': 990 'block_number': 996
} }
]) ])
...@@ -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.account_identity, self.idC) path = await wot_graph.get_shortest_path_to_identity(self.idC, self.account_identity)
self.assertEqual(path[0], self.account_identity.pubkey) self.assertEqual(path[0], self.idC.pubkey)
self.assertEqual(path[1], self.idB.pubkey) self.assertEqual(path[1], self.idB.pubkey)
self.assertEqual(path[2], self.idC.pubkey) self.assertEqual(path[2], self.account_identity.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.
Please register or to comment