From a2a41830f72ae014d3b4dba591c6bfc85ffeb062 Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 29 Apr 2017 16:40:55 +0200 Subject: [refactor] create client _database module --- testing/tests/blobs/test_blobs.py | 10 +++++++--- testing/tests/blobs/test_local_backend.py | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'testing/tests/blobs') diff --git a/testing/tests/blobs/test_blobs.py b/testing/tests/blobs/test_blobs.py index c99cc572..9a0feb61 100644 --- a/testing/tests/blobs/test_blobs.py +++ b/testing/tests/blobs/test_blobs.py @@ -17,12 +17,16 @@ """ Tests for blobs handling. """ +from io import BytesIO +from mock import Mock + from twisted.trial import unittest from twisted.internet import defer -from leap.soledad.client._blobs import DecrypterBuffer, BlobManager, FIXED_REV + +from leap.soledad.client._database.blobs import DecrypterBuffer +from leap.soledad.client._database.blobs import BlobManager +from leap.soledad.client._database.blobs import FIXED_REV from leap.soledad.client import _crypto -from io import BytesIO -from mock import Mock class BlobTestCase(unittest.TestCase): diff --git a/testing/tests/blobs/test_local_backend.py b/testing/tests/blobs/test_local_backend.py index 5caa7463..202d0611 100644 --- a/testing/tests/blobs/test_local_backend.py +++ b/testing/tests/blobs/test_local_backend.py @@ -19,7 +19,7 @@ Tests for sqlcipher backend on blobs client. """ from twisted.trial import unittest from twisted.internet import defer -from leap.soledad.client._blobs import BlobManager, BlobDoc, FIXED_REV +from leap.soledad.client._database.blobs import BlobManager, BlobDoc, FIXED_REV from io import BytesIO from mock import Mock import pytest -- cgit v1.2.3