server/test/unittest_migractions.py
changeset 6595 00cd0b273cf5
parent 6427 c8a5ac2d1eaa
child 6632 78878f5a8166
--- a/server/test/unittest_migractions.py	Fri Oct 22 15:01:54 2010 +0200
+++ b/server/test/unittest_migractions.py	Fri Oct 22 16:01:54 2010 +0200
@@ -15,8 +15,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""unit tests for module cubicweb.server.migractions
-"""
+"""unit tests for module cubicweb.server.migractions"""
 
 from __future__ import with_statement
 
@@ -51,9 +50,11 @@
         cls.origschema = deepcopy(cls.repo.schema)
         # hack to read the schema from data/migrschema
         config.appid = join('data', 'migratedapp')
+        config._apphome = cls.datapath('migratedapp')
         global migrschema
         migrschema = config.load_schema()
         config.appid = 'data'
+        config._apphome = cls.datadir
         assert 'Folder' in migrschema
 
     @classmethod