diff --git a/src/sakia/gui/process_cfg_community.py b/src/sakia/gui/process_cfg_community.py index de3b43dfd2d0e956ef9acf9707a1c7afa43774cb..be0e5355aa6940413be9217b7e06534d34b13819 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 d029ac7d27ae237c96d8562c1fb8175578c200f3..3509dd377baba4399dabb64badd2a7e5bf706f19 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')