Merge lp:~diegosarmentero/ubuntuone-control-panel/transfers into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-08-20 |
| Approved revision: | 350 |
| Merged at revision: | 344 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/transfers |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
531 lines (+371/-3) 4 files modified
ubuntuone/controlpanel/gui/__init__.py (+5/-0) ubuntuone/controlpanel/gui/qt/systray.py (+121/-1) ubuntuone/controlpanel/gui/qt/tests/__init__.py (+12/-1) ubuntuone/controlpanel/gui/qt/tests/test_systray.py (+233/-1) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/transfers |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | Approve on 2012-08-20 | ||
| Roberto Alsina (community) | 2012-08-16 | Approve on 2012-08-16 | |
|
Review via email:
|
|||
Commit Message
- Show current and recent transfers on the transfers menu (LP: #1034542).
Description of the Change
You will need this branch:
lp:~diegosarmentero/ubuntuone-client/menu-progress
to test it IRL on windows.
- 347. By Diego Sarmentero on 2012-08-16
-
fixing tests
- 348. By Diego Sarmentero on 2012-08-16
-
fixed import
- 349. By Diego Sarmentero on 2012-08-16
-
improves in progress actoin
| Manuel de la Peña (mandel) wrote : | # |
Maybe an assert for the following is better than just a simple comment:
127 + # This is never executed on Ubuntu
and
134 + # This is never executed on Ubuntu
If not an assert a log call.
Also, why do we do the following:
340 + self.patch(
341 + yield super(Transfers
Do we have to patch it before calling the super version? Can we add a comment with the reason.
The definition of a call like:
384 + def fake_sync_menu():
385 + """Fake backend sync_menu."""
386 + # Return copy of in_progress
387 + return {RECENTTRANSFERS: [], UPLOADING: in_progress[:]}
is done several times. We can do that in the setUp, for example like this:
self.recent_
self.uploading = []
def fake_sync_menu():
return return {RECENTTRANSFERS: self.recent_
and just change the value of the vars according to the tests.
- 350. By Diego Sarmentero on 2012-08-20
-
Some improves in logs and tests
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Maybe an assert for the following is better than just a simple comment:
>
> 127 + # This is never executed on Ubuntu
>
> and
>
> 134 + # This is never executed on Ubuntu
>
> If not an assert a log call.
>
> Also, why do we do the following:
>
> 340 + self.patch(
> 341 + yield super(Transfers
>
> Do we have to patch it before calling the super version? Can we add a comment
> with the reason.
>
> The definition of a call like:
>
> 384 + def fake_sync_menu():
> 385 + """Fake backend sync_menu."""
> 386 + # Return copy of in_progress
> 387 + return {RECENTTRANSFERS: [], UPLOADING: in_progress[:]}
>
> is done several times. We can do that in the setUp, for example like this:
>
> self.recent_
> self.uploading = []
>
> def fake_sync_menu():
> return return {RECENTTRANSFERS: self.recent_
> self.uploading}
>
> and just change the value of the vars according to the tests.
Done!


Looks great!