--- a/devtools/__init__.py Fri Oct 08 13:19:07 2010 +0200
+++ b/devtools/__init__.py Fri Oct 08 15:28:51 2010 +0200
@@ -190,7 +190,7 @@
# threads
return True
-
+# XXX merge with BaseApptestConfiguration ?
class ApptestConfiguration(BaseApptestConfiguration):
def __init__(self, appid, log_threshold=logging.CRITICAL, sourcefile=None):
@@ -198,6 +198,7 @@
self.init_repository = sourcefile is None
self.sourcefile = sourcefile
+
class RealDatabaseConfiguration(ApptestConfiguration):
"""configuration class for tests to run on a real database.
@@ -220,6 +221,7 @@
db_require_setup = False # skip init_db / reset_db steps
read_instance_schema = True # read schema from database
+
# test database handling #######################################################
def init_test_database(config=None, configdir='data'):
@@ -242,7 +244,6 @@
install_sqlite_patch(repo.querier)
return repo, cnx
-
def reset_test_database(config):
"""init a test database for a specific driver"""
if not config.db_require_setup:
@@ -342,7 +343,6 @@
dbfile = config.sources()['system']['db-name']
shutil.copy(dbfile, '%s-template' % dbfile)
-
def install_sqlite_patch(querier):
"""This patch hotfixes the following sqlite bug :
- http://www.sqlite.org/cvstrac/tktview?tn=1327,33