merge stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Fri, 09 Apr 2010 15:01:25 +0000
branchstable
changeset 5210 1c635a91e403
parent 5209 52c9d25101a1 (diff)
parent 5194 395f076512a1 (current diff)
child 5211 8fac9cd3c510
merge
devtools/__init__.py
--- a/devtools/__init__.py	Fri Apr 09 13:59:41 2010 +0200
+++ b/devtools/__init__.py	Fri Apr 09 15:01:25 2010 +0000
@@ -204,7 +204,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
@@ -220,6 +220,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)
 
@@ -239,7 +241,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 ##############################################