server/test/unittest_serverctl.py
changeset 10960 9e64fddebc89
parent 10825 56ca5f6e0533
--- a/server/test/unittest_serverctl.py	Tue Sep 08 09:05:31 2015 +0200
+++ b/server/test/unittest_serverctl.py	Thu Dec 10 12:34:15 2015 +0100
@@ -1,7 +1,7 @@
 import os.path as osp
 import shutil
 
-from cubicweb.devtools import testlib
+from cubicweb.devtools import testlib, ApptestConfiguration
 from cubicweb.server.serverctl import _local_dump, DBDumpCommand
 from cubicweb.server.serverconfig import ServerConfiguration
 
@@ -9,7 +9,8 @@
     def setUp(self):
         super(ServerCTLTC, self).setUp()
         self.orig_config_for = ServerConfiguration.config_for
-        ServerConfiguration.config_for = staticmethod(lambda appid: self.config)
+        config_for = lambda appid: ApptestConfiguration(appid, apphome=self.datadir)
+        ServerConfiguration.config_for = staticmethod(config_for)
 
     def tearDown(self):
         ServerConfiguration.config_for = self.orig_config_for