From f7e44893fdbcf4797ac82e815fd59cb1b3503583 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Wed, 6 Apr 2016 07:31:11 +0200 Subject: [PATCH] Fix tests --- src/sakia/tests/unit/gui/test_main_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sakia/tests/unit/gui/test_main_window.py b/src/sakia/tests/unit/gui/test_main_window.py index f32d1e90..0a64f83e 100644 --- a/src/sakia/tests/unit/gui/test_main_window.py +++ b/src/sakia/tests/unit/gui/test_main_window.py @@ -48,6 +48,7 @@ class TestMainWindow(unittest.TestCase, QuamashTest): label_status = Mock() label_time = Mock() combo_referentials = Mock() + combo_referentials.currentIndexChanged = {str: Mock()} mainwindow = MainWindow(self.app, self.account_joe, self.homescreen, self.community_view, self.node_manager, widget, ui, label_icon, @@ -72,6 +73,8 @@ class TestMainWindow(unittest.TestCase, QuamashTest): label_status = Mock() label_time = Mock() combo_referentials = Mock() + combo_referentials.currentIndexChanged = {str: Mock()} + type(self.app).current_account = PropertyMock(return_value=None) mainwindow = MainWindow(self.app, None, self.homescreen, self.community_view, self.node_manager, widget, ui, label_icon, -- GitLab