Merge lp:~diegosarmentero/ubuntu-sso-client/845750 into lp:ubuntu-sso-client
Proposed by
Diego Sarmentero
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||
Approved revision: | 790 | ||||
Merged at revision: | 786 | ||||
Proposed branch: | lp:~diegosarmentero/ubuntu-sso-client/845750 | ||||
Merge into: | lp:ubuntu-sso-client | ||||
Prerequisite: | lp:~diegosarmentero/ubuntu-sso-client/845759 | ||||
Diff against target: |
229 lines (+88/-34) 2 files modified
ubuntu_sso/qt/controllers.py (+40/-0) ubuntu_sso/qt/tests/test_windows.py (+48/-34) |
||||
To merge this branch: | bzr merge lp:~diegosarmentero/ubuntu-sso-client/845750 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart (community) | Approve | ||
Review via email: mp+75606@code.launchpad.net |
This proposal supersedes a proposal from 2011-09-13.
Commit message
- Fixed button style from Reset Password Page and Forgotten Password Page. (LP: #845750).
Description of the change
Fixed button style from Reset Password Page and Forgotten Password Page.
To post a comment you must log in.
Code looks good!
A simple improvement to the test code
in FakeForgottenPa sswordPage, instead of:
def setProperty(self, key, val):
self.property_ key = key
self.property_ value = val
"""Fake setProperty to restyle some widget."""
it would be better to have an instance attr:
self.properties = {}
and then:
def setProperty(self, key, val):
self.propertyi es[key] = val
"""Fake setProperty to restyle some widget."""
With that change, you can have:
def setDefault(self, val):
self.is_ default = val
"""Fake button setDefault."""
become:
def setDefault(self, val):
self.propertie s['default' ] = val
"""Fake button setDefault."""
The next improvement would be to have the common functionality for the fakes into a base class and reuse that from the 2 controllers (FakeForgottenP asswordPage, FakeResetPasswo rdPage) and any other class that needs a similar testing.