server/test/unittest_migractions.py
changeset 8947 3bbd416b09ec
parent 8942 0f60f1061a2e
child 9043 97c3bb9a7c99
child 9151 78071e41926f
--- a/server/test/unittest_migractions.py	Wed Apr 24 14:49:49 2013 +0200
+++ b/server/test/unittest_migractions.py	Fri Apr 26 18:06:44 2013 +0200
@@ -49,10 +49,9 @@
     def _init_repo(cls):
         super(MigrationCommandsTC, cls)._init_repo()
         # we have to read schema from the database to get eid for schema entities
+        cls.repo.set_schema(cls.repo.deserialize_schema(), resetvreg=False)
+        # hack to read the schema from data/migrschema
         config = cls.config
-        config._cubes = None
-        cls.repo.fill_schema()
-        # hack to read the schema from data/migrschema
         config.appid = join('data', 'migratedapp')
         config._apphome = cls.datapath('migratedapp')
         global migrschema