devtools/testlib.py
changeset 10017 58c7a075c793
parent 9933 3674f249ab1d
child 10108 129af90b2364
--- a/devtools/testlib.py	Thu Apr 25 10:16:25 2013 +0200
+++ b/devtools/testlib.py	Mon Jun 30 10:49:53 2014 +0200
@@ -513,9 +513,9 @@
         This method will be called by the database handler once the config has
         been properly bootstrapped.
         """
-        source = config.system_source_config
-        cls.admlogin = unicode(source['db-user'])
-        cls.admpassword = source['db-password']
+        admincfg = config.default_admin_config
+        cls.admlogin = unicode(admincfg['login'])
+        cls.admpassword = admincfg['password']
         # uncomment the line below if you want rql queries to be logged
         #config.global_set_option('query-log-file',
         #                         '/tmp/test_rql_log.' + `os.getpid()`)