[IMP] oe: get db password from config file
authorXavier Morel <xmo@openerp.com>
Fri, 31 Jan 2014 11:48:28 +0000 (12:48 +0100)
committerXavier Morel <xmo@openerp.com>
Fri, 31 Jan 2014 11:48:28 +0000 (12:48 +0100)
bzr revid: xmo@openerp.com-20140131114828-b90z3pxql63ky6gp

openerpcommand/run_tests.py

index 3e9fec5..7e23f3e 100644 (file)
@@ -101,11 +101,11 @@ def run(args):
     import openerp
 
     config = openerp.tools.config
+    config.load()
+
     config['db_name'] = args.database
     if args.port:
         config['xmlrpc_port'] = int(args.port)
-    config['admin_passwd'] = 'admin'
-    config['db_password'] = 'a2aevl8w' # TODO from .openerpserverrc
 
     if args.addons:
         args.addons = args.addons.replace(':',',').split(',')