Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Apr 6, 2016
1 parent 5af14d6 commit f7e4489
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sakia/tests/unit/gui/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_change_account(self):
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,
Expand All @@ -72,6 +73,8 @@ def test_change_account_from_none(self):
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,
Expand Down

0 comments on commit f7e4489

Please sign in to comment.