devtools/__init__.py
changeset 6425 8d7c2fd2ac66
parent 6377 3bb415310d4f
parent 6424 f443a2b8a5c7
child 6427 c8a5ac2d1eaa
--- a/devtools/__init__.py	Fri Oct 08 17:07:46 2010 +0200
+++ b/devtools/__init__.py	Sat Oct 09 00:05:49 2010 +0200
@@ -179,7 +179,7 @@
         # threads
         return True
 
-
+# XXX merge with BaseApptestConfiguration ?
 class ApptestConfiguration(BaseApptestConfiguration):
 
     def __init__(self, appid, log_threshold=logging.CRITICAL, sourcefile=None):
@@ -187,6 +187,7 @@
         self.init_repository = sourcefile is None
         self.sourcefile = sourcefile
 
+
 class RealDatabaseConfiguration(ApptestConfiguration):
     """configuration class for tests to run on a real database.
 
@@ -209,6 +210,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'):
@@ -231,7 +233,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:
@@ -331,7 +332,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