summaryrefslogtreecommitdiff
path: root/testing/tests/sqlcipher
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/sqlcipher')
-rw-r--r--testing/tests/sqlcipher/test_backend.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/tests/sqlcipher/test_backend.py b/testing/tests/sqlcipher/test_backend.py
index 643fa041..6e9595db 100644
--- a/testing/tests/sqlcipher/test_backend.py
+++ b/testing/tests/sqlcipher/test_backend.py
@@ -22,11 +22,6 @@ import pytest
import time
import threading
import sys
-if sys.version_info[0] < 3:
- from pysqlcipher import dbapi2
-else:
- from pysqlcipher3 import dbapi2
-from testscenarios import TestWithScenarios
# l2db stuff.
from leap.soledad.common.l2db import errors
@@ -48,6 +43,13 @@ from test_soledad.util import SQLCIPHER_SCENARIOS
from test_soledad.util import PASSWORD
from test_soledad.util import BaseSoledadTest
+from testscenarios import TestWithScenarios
+
+if sys.version_info[0] < 3:
+ from pysqlcipher import dbapi2
+else:
+ from pysqlcipher3 import dbapi2
+
def sqlcipher_open(path, passphrase, create=True, document_factory=None):
return SQLCipherDatabase(