devtools/__init__.py
branchstable
changeset 5208 1c154b055105
parent 5169 240e21b94a28
child 5210 1c635a91e403
--- 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 ##############################################