--- a/devtools/__init__.py Thu Apr 15 10:58:21 2010 +0200
+++ b/devtools/__init__.py Thu Apr 15 10:59:49 2010 +0200
@@ -217,8 +217,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)
@@ -239,9 +241,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):