summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-13 12:45:53 -0200
committerdrebs <drebs@leap.se>2013-02-13 12:45:53 -0200
commitecf568431319b4e81bc077141048d0b7f1e0964d (patch)
treec3b2fe3e6aea128ec8fc2630547bfc5077d36d23 /tests/__init__.py
parentb056db0ad84af10d3d6368ea3e93f23f0f3251a9 (diff)
Refactor and fix tests.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 6135e648..1a9962a7 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,3 +1,7 @@
+"""
+Tests to make sure Soledad provides U1DB functionality and more.
+"""
+
import u1db
from leap.soledad import Soledad
from leap.soledad.backends.leap_backend import LeapDocument
@@ -10,6 +14,9 @@ from leap.testing.basetest import BaseLeapTest
#-----------------------------------------------------------------------------
class BaseSoledadTest(BaseLeapTest):
+ """
+ Instantiates GPG and Soledad for usage in tests.
+ """
def setUp(self):
# config info
@@ -27,7 +34,8 @@ class BaseSoledadTest(BaseLeapTest):
initialize=False)
self._soledad._gpg.import_keys(PUBLIC_KEY)
self._soledad._gpg.import_keys(PRIVATE_KEY)
- self._soledad._initialize()
+ self._soledad._init_crypto()
+ self._soledad._init_db()
def tearDown(self):
self._db1.close()