From e9b5389fc9091404392c48e7c22b3ec400d780f8 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Fri, 25 Dec 2015 11:34:04 +0100 Subject: [PATCH] Add info to tests to check on macos --- src/sakia/gui/process_cfg_community.py | 6 +++--- .../functional/process_cfg_community/test_add_community.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sakia/gui/process_cfg_community.py b/src/sakia/gui/process_cfg_community.py index de3b43df..be0e5355 100644 --- a/src/sakia/gui/process_cfg_community.py +++ b/src/sakia/gui/process_cfg_community.py @@ -213,17 +213,17 @@ class ProcessConfigureCommunity(QDialog, Ui_CommunityConfigurationDialog): self.nodes = [] self.community_added.connect(self.add_community_and_close) - step_init = StepPageInit(self) + self._step_init = StepPageInit(self) step_add_peers = StepPageAddpeers(self) - step_init.next_step = step_add_peers + self._step_init.next_step = step_add_peers if self.community is not None: self.stacked_pages.removeWidget(self.page_node) self.step = step_add_peers self.setWindowTitle(self.tr("Configure community {0}").format(self.community.currency)) else: - self.step = step_init + self.step = self._step_init self.setWindowTitle(self.tr("Add a community")) self.step.display_page() diff --git a/src/sakia/tests/functional/process_cfg_community/test_add_community.py b/src/sakia/tests/functional/process_cfg_community/test_add_community.py index d029ac7d..3509dd37 100644 --- a/src/sakia/tests/functional/process_cfg_community/test_add_community.py +++ b/src/sakia/tests/functional/process_cfg_community/test_add_community.py @@ -63,7 +63,7 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest): await asyncio.sleep(1) self.assertEqual(mock.get_request(0).method, 'GET') self.assertEqual(mock.get_request(0).url, '/network/peering') - self.assertEqual(process_community.community.network.nodes[0]._endpoints[0].port, port) + self.assertEqual(process_community._step_init.node._endpoints[0].port, port) self.assertEqual(mock.get_request(1).method, 'GET') self.assertEqual(mock.get_request(1).url, '/wot/certifiers-of/7Aqw6Efa9EzE7gtsc8SveLLrM7gm6NEGoywSv4FJx6pZ') -- GitLab