summaryrefslogtreecommitdiff
path: root/common/src/leap
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-08-12 17:21:28 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-12 17:21:28 -0300
commit861f7d355f2b42b02d00906cbb63351cbc5d0146 (patch)
tree2d08edd582dcb3bb8b563506e175d26d7f61028e /common/src/leap
parentf9297cd90ac2623b36d31e3ebf4b9b719a0efc1f (diff)
[tests] added inlineCallbacks to test with yield
test_db_sync_autocreate was using yield but didn't have the inlineCallbacks decorator, that made it a generator but the trial tests don't support generators. Fixed this
Diffstat (limited to 'common/src/leap')
-rw-r--r--common/src/leap/soledad/common/tests/test_sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/tests/test_sync.py b/common/src/leap/soledad/common/tests/test_sync.py
index 53dd923b..bb98db8c 100644
--- a/common/src/leap/soledad/common/tests/test_sync.py
+++ b/common/src/leap/soledad/common/tests/test_sync.py
@@ -235,6 +235,7 @@ class TestSoledadDbSync(
self.assertGetEncryptedDoc(
self.db, doc2.doc_id, doc2.rev, tests.nested_doc, False)
+ @defer.inlineCallbacks
def test_db_sync_autocreate(self):
"""
Test sync.