From 5d58f808e50776674e74c57c5b91db5310dc973b Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Sat, 30 Jul 2016 00:54:07 +0200 Subject: [PATCH] Fix tests --- src/sakia/tests/unit/core/graph/test_wot_graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sakia/tests/unit/core/graph/test_wot_graph.py b/src/sakia/tests/unit/core/graph/test_wot_graph.py index cd20d387..e0e355a2 100644 --- a/src/sakia/tests/unit/core/graph/test_wot_graph.py +++ b/src/sakia/tests/unit/core/graph/test_wot_graph.py @@ -133,10 +133,10 @@ class TestWotGraph(unittest.TestCase, QuamashTest): self.assertTrue(result) self.assertEqual(len(wot_graph.nx_graph.nodes()), 3) self.assertEqual(len(wot_graph.nx_graph.edges()), 2) - path = await wot_graph.get_shortest_path_to_identity(self.idC, self.account_identity) - self.assertEqual(path[0], self.idC.pubkey) + path = await wot_graph.get_shortest_path_to_identity(self.account_identity, self.idC) + self.assertEqual(path[0], self.account_identity.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()) -- GitLab