From ecf568431319b4e81bc077141048d0b7f1e0964d Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 13 Feb 2013 12:45:53 -0200 Subject: Refactor and fix tests. --- tests/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/__init__.py') 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() -- cgit v1.2.3