From 1b9009c0b67e6209abbb7047b1edea7961bd3256 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 30 Apr 2013 15:37:37 -0300 Subject: Update tests with monkey patching to always use our SyncTarget. --- src/leap/soledad/tests/test_sqlcipher.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/leap/soledad/tests/test_sqlcipher.py') diff --git a/src/leap/soledad/tests/test_sqlcipher.py b/src/leap/soledad/tests/test_sqlcipher.py index 6b2889d6..b937b634 100644 --- a/src/leap/soledad/tests/test_sqlcipher.py +++ b/src/leap/soledad/tests/test_sqlcipher.py @@ -1,4 +1,25 @@ -"""Test sqlcipher backend internals.""" +# -*- coding: utf-8 -*- +# test_sqlcipher.py +# Copyright (C) 2013 LEAP +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +""" +Test sqlcipher backend internals. +""" + import os import time @@ -11,6 +32,7 @@ import threading from pysqlcipher import dbapi2 from StringIO import StringIO + # u1db stuff. from u1db import ( errors, @@ -20,6 +42,7 @@ from u1db import ( ) from u1db.backends.sqlite_backend import SQLitePartialExpandDatabase + # soledad stuff. from leap.soledad.backends.sqlcipher import ( SQLCipherDatabase, @@ -36,6 +59,7 @@ from leap.soledad.backends.leap_backend import ( MAC_KEY, ) + # u1db tests stuff. from leap.soledad.tests import u1db_tests as tests, BaseSoledadTest from leap.soledad.tests.u1db_tests import test_sqlite_backend -- cgit v1.2.3