From d56b7be02a854c40ca9c7a9570d0b5c3333f01f5 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 30 Jun 2015 16:39:04 -0300 Subject: [bug] add close() to mocked shared db test util --- common/src/leap/soledad/common/tests/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/leap/soledad/common/tests/util.py b/common/src/leap/soledad/common/tests/util.py index 8536e4a8..60bab81c 100644 --- a/common/src/leap/soledad/common/tests/util.py +++ b/common/src/leap/soledad/common/tests/util.py @@ -50,7 +50,7 @@ from leap.soledad.common.couch import CouchDatabase, CouchServerState from leap.soledad.common.crypto import ENC_SCHEME_KEY from leap.soledad.client import Soledad -from leap.soledad.client import target +from leap.soledad.client import http_target from leap.soledad.client import auth from leap.soledad.client.crypto import decrypt_doc_dict @@ -165,6 +165,7 @@ class MockedSharedDBTest(object): lock = Mock(return_value=('atoken', 300)) unlock = Mock(return_value=True) open = Mock(return_value=None) + close = Mock(return_value=None) syncable = True def __call__(self): @@ -173,7 +174,7 @@ class MockedSharedDBTest(object): def soledad_sync_target(test, path): - return target.SoledadSyncTarget( + return http_target.SoledadSyncTarget( test.getURL(path), crypto=test._soledad._crypto) -- cgit v1.2.3