Merge lp:~mikemc/ubuntuone-client/fix-dummy-sync-menu-again into lp:ubuntuone-client

Proposed by Mike McCracken on 2012-10-15
Status: Merged
Approved by: Mike McCracken on 2012-10-16
Approved revision: 1344
Merged at revision: 1344
Proposed branch: lp:~mikemc/ubuntuone-client/fix-dummy-sync-menu-again
Merge into: lp:ubuntuone-client
Diff against target: 36 lines (+9/-1)
3 files modified
tests/platform/sync_menu/test_common.py (+5/-0)
ubuntuone/platform/sync_menu/common.py (+3/-0)
ubuntuone/status/aggregator.py (+1/-1)
To merge this branch: bzr merge lp:~mikemc/ubuntuone-client/fix-dummy-sync-menu-again
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve on 2012-10-15
Brian Curtin (community) 2012-10-15 Approve on 2012-10-15
Review via email: mp+129767@code.launchpad.net

Commit Message

- Sync up mac/win sync_menu dummy with linux implementation. (LP: #1067088)

Description of the Change

- Sync up mac/win sync_menu dummy with linux implementation. (LP: #1067088)

To post a comment you must log in.
review: Approve
Roberto Alsina (ralsina) wrote :

Looks good. The change in line 33 does nothing but yuck, was it ugly!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/platform/sync_menu/test_common.py'
2--- tests/platform/sync_menu/test_common.py 2012-09-26 18:32:31 +0000
3+++ tests/platform/sync_menu/test_common.py 2012-10-15 21:24:28 +0000
4@@ -47,3 +47,8 @@
5 """Check that the dummy has the proper methods required by the API."""
6 dummy = common.UbuntuOneSyncMenu(1, 2)
7 self.assertIsInstance(dummy.update_transfers, Callable)
8+
9+ def test_dummy_has_sync_status_changed(self):
10+ """Check that the dummy has the proper methods required by the API."""
11+ dummy = common.UbuntuOneSyncMenu(1, 2)
12+ self.assertIsInstance(dummy.sync_status_changed, Callable)
13
14=== modified file 'ubuntuone/platform/sync_menu/common.py'
15--- ubuntuone/platform/sync_menu/common.py 2012-09-26 18:32:31 +0000
16+++ ubuntuone/platform/sync_menu/common.py 2012-10-15 21:24:28 +0000
17@@ -36,3 +36,6 @@
18
19 def update_transfers(self):
20 """Do nothing."""
21+
22+ def sync_status_changed(self, status):
23+ """Do nothing."""
24
25=== modified file 'ubuntuone/status/aggregator.py'
26--- ubuntuone/status/aggregator.py 2012-10-11 14:37:35 +0000
27+++ ubuntuone/status/aggregator.py 2012-10-15 21:24:28 +0000
28@@ -176,7 +176,7 @@
29
30 MESSAGE_ONE = None # to be defined in child classes
31 WEIGHT = 99
32- DO_NOT_INSTANCE = "Do not instance this class, only children."""
33+ DO_NOT_INSTANCE = "Do not instance this class, only children."
34
35 def __init__(self, **kwargs):
36 """Initialize this instance."""

Subscribers

People subscribed via source and target branches