diff options
author | drebs <drebs@leap.se> | 2015-06-30 16:39:04 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2015-06-30 16:39:04 -0300 |
commit | d56b7be02a854c40ca9c7a9570d0b5c3333f01f5 (patch) | |
tree | 3bc794e520f40e79ee13d37f3f2c03b1e6b87368 /common/src | |
parent | 813fa3940be6755619c29ddf0fbbcc83b446c36d (diff) |
[bug] add close() to mocked shared db test util
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/leap/soledad/common/tests/util.py | 5 |
1 files 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) |