cubicweb/devtools/testlib.py
changeset 11269 73ac69970047
parent 11266 ea25d87a8537
child 11270 a9dc97b87ced
--- a/cubicweb/devtools/testlib.py	Thu Sep 11 14:22:02 2014 +0200
+++ b/cubicweb/devtools/testlib.py	Fri May 20 12:01:42 2016 +0200
@@ -378,8 +378,8 @@
         try:
             return cls.__dict__['_config']
         except KeyError:
-            home = abspath(join(dirname(sys.modules[cls.__module__].__file__), cls.appid))
-            config = cls._config = cls.configcls(cls.appid, apphome=home)
+            test_module_file = sys.modules[cls.__module__].__file__
+            config = cls._config = cls.configcls(cls.appid, test_module_file)
             config.mode = 'test'
             return config