--- a/devtools/__init__.py Thu Apr 15 12:47:02 2010 +0200
+++ b/devtools/__init__.py Thu Apr 15 12:48:40 2010 +0200
@@ -214,8 +214,10 @@
driver = config.sources()['system']['db-driver']
if driver == 'sqlite':
reset_test_database_sqlite(config)
- elif driver == 'sqlserver2005':
- reset_test_database_sqlserver2005(config)
+ elif driver in ('sqlserver2005', 'postgres'):
+ # XXX do something with dump/restore ?
+ print 'resetting the database is not done for', driver
+ print 'you should handle it manually'
else:
raise ValueError('no reset function for driver %r' % driver)
@@ -236,9 +238,6 @@
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 ##############################################
def cleanup_sqlite(dbfile, removetemplate=False):