--- 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 ##############################################