[testlib] fix dummy bug in reset_test_database(): s/if/elif stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 12 Apr 2010 08:17:35 +0200
branchstable
changeset 5212 a545eb9add6f
parent 5211 8fac9cd3c510
child 5213 8604000bf3b2
[testlib] fix dummy bug in reset_test_database(): s/if/elif
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