# HG changeset patch # User Adrien Di Mascio # Date 1271053055 -7200 # Node ID a545eb9add6fca5368ba4fd1c0796a6be7915ea2 # Parent 8fac9cd3c51088e49cc73d0bfe8e7d22e8429fec [testlib] fix dummy bug in reset_test_database(): s/if/elif diff -r 8fac9cd3c510 -r a545eb9add6f devtools/__init__.py --- a/devtools/__init__.py Sun Apr 11 11:59:45 2010 +0000 +++ b/devtools/__init__.py Mon Apr 12 08:17:35 2010 +0200 @@ -220,7 +220,7 @@ driver = config.sources()['system']['db-driver'] if driver == 'sqlite': reset_test_database_sqlite(config) - if driver == 'sqlserver2005': + elif driver == 'sqlserver2005': reset_test_database_sqlserver2005(config) else: raise ValueError('no reset function for driver %r' % driver) @@ -241,7 +241,7 @@ 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