Merge lp:~facundo/magicicada-gui/simple-api into lp:magicicada-gui
Proposed by
Facundo Batista
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||||||||||
Approved revision: | 12 | ||||||||||||
Merge reported by: | Facundo Batista | ||||||||||||
Merged at revision: | not available | ||||||||||||
Proposed branch: | lp:~facundo/magicicada-gui/simple-api | ||||||||||||
Merge into: | lp:magicicada-gui | ||||||||||||
Diff against target: |
310 lines (+207/-28) 2 files modified
magicicada/syncdaemon.py (+52/-4) magicicada/tests/test_syncdaemon.py (+155/-24) |
||||||||||||
To merge this branch: | bzr merge lp:~facundo/magicicada-gui/simple-api | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart | Approve | ||
Review via email: mp+25248@code.launchpad.net |
Description of the change
Expose a simple API to the GUI.
These are the attributes (exposed in SyncDaemon.
is_started
is_connected
is_online
And the methods:
start
stop
connect
disconnect
To post a comment you must log in.
Is there a typo here: """Tells the SyncDaemon that the user wants it to DISconnect.""" ?
When running nose, I get:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- n.MetaQueueChan gedTests testMethod= test_mq_ polling_ untilfinish> (test_mq_ polling_ untilfinish) still running at 2.0 secs
ERROR: Check that it polls mq until no more is needed.
-------
TimeoutError: <test_syncdaemo
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 6/dist- packages/ twisted/ internet/ base.py" , line 778, in runUntilCurrent func(*call. args, **call.kw) nessita/ projects/ magicicada/ review_ simple- api/magicicada/ tests/test_ syncdaemon. py", line 365, in check assertEqual( len(calls) , 3) python2. 6/dist- packages/ twisted/ trial/unittest. py", line 287, in failUnlessEqual
ERROR: Check that it polls mq until no more is needed.
-------
Traceback (most recent call last):
File "/usr/lib/
call.
File "/home/
self.
File "/usr/lib/
% (msg, pformat(first), pformat(second)))
FailTest: not equal:
a = 2
b = 3
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 70 tests in 3.033s
FAILED (errors=2)