enable tests against sqlserver2005 database stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 08 Apr 2010 10:23:49 +0000
branchstable
changeset 5208 1c154b055105
parent 5178 42285e33b01c
child 5209 52c9d25101a1
enable tests against sqlserver2005 database
devtools/__init__.py
--- a/devtools/__init__.py	Wed Apr 07 14:53:35 2010 +0200
+++ b/devtools/__init__.py	Thu Apr 08 10:23:49 2010 +0000
@@ -201,7 +201,7 @@
     elif driver == 'postgres':
         init_test_database_postgres(config)
     elif driver == 'sqlserver2005':
-        init_test_database_sqlserver2005(config, source)
+        init_test_database_sqlserver2005(config)
     else:
         raise ValueError('no initialization function for driver %r' % driver)
     config._cubes = None # avoid assertion error
@@ -217,6 +217,8 @@
     driver = config.sources()['system']['db-driver']
     if driver == 'sqlite':
         reset_test_database_sqlite(config)
+    if driver == 'sqlserver2005':
+        reset_test_database_sqlserver2005(config)
     else:
         raise ValueError('no reset function for driver %r' % driver)
 
@@ -236,7 +238,9 @@
     if config.init_repository:
         from cubicweb.server import init_repository
         init_repository(config, interactive=False, drop=True, vreg=vreg)
-
+        
+def reset_test_database_sqlserver2005(config):
+    pass
 
 ### sqlite test database handling ##############################################