Merge lp:~ralsina/ubuntuone-windows-installer/fix_843796 into lp:ubuntuone-windows-installer

Proposed by Roberto Alsina
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 53
Merged at revision: 54
Proposed branch: lp:~ralsina/ubuntuone-windows-installer/fix_843796
Merge into: lp:ubuntuone-windows-installer
Diff against target: 22 lines (+5/-0)
1 file modified
ubuntuone_installer/gui/qt/tests/test_setup_account.py (+5/-0)
To merge this branch: bzr merge lp:~ralsina/ubuntuone-windows-installer/fix_843796
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
Diego Sarmentero (community) Approve
Review via email: mp+74440@code.launchpad.net

Commit message

Patch a button so tests don't show errors.

Description of the change

Patch a button so tests don't show errors.

To post a comment you must log in.
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Alejandro J. Cura (alecu) wrote :

plus one

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone_installer/gui/qt/tests/test_setup_account.py'
2--- ubuntuone_installer/gui/qt/tests/test_setup_account.py 2011-09-01 11:15:49 +0000
3+++ ubuntuone_installer/gui/qt/tests/test_setup_account.py 2011-09-07 14:19:35 +0000
4@@ -115,6 +115,10 @@
5 parent=None,
6 )
7
8+ def setUp(self):
9+ super(SetupAccountTestCase, self).setUp()
10+ self.patch(self.ui, "set_up_button", QtGui.QPushButton())
11+
12 def test_init(self):
13 """Check the initial state of SetupAccount."""
14 self.assertEqual(self.ui.ui.password_edit.receivers(
15@@ -225,6 +229,7 @@
16 # so we don't rely on any SSO behaviour
17 super(SetupAccountFakeWizardTestCase, self).setUp()
18 self.patch(self.ui, 'wizard', FakeWizard)
19+ self.patch(self.ui, "set_up_button", QtGui.QPushButton())
20
21 def test_blank_name(self):
22 """Status when the name field is blank (spaces).

Subscribers

People subscribed via source and target branches