server/test/unittest_migractions.py
changeset 8947 3bbd416b09ec
parent 8942 0f60f1061a2e
child 9043 97c3bb9a7c99
child 9151 78071e41926f
equal deleted inserted replaced
8946:fae2f561b0f5 8947:3bbd416b09ec
    47 
    47 
    48     @classmethod
    48     @classmethod
    49     def _init_repo(cls):
    49     def _init_repo(cls):
    50         super(MigrationCommandsTC, cls)._init_repo()
    50         super(MigrationCommandsTC, cls)._init_repo()
    51         # we have to read schema from the database to get eid for schema entities
    51         # we have to read schema from the database to get eid for schema entities
       
    52         cls.repo.set_schema(cls.repo.deserialize_schema(), resetvreg=False)
       
    53         # hack to read the schema from data/migrschema
    52         config = cls.config
    54         config = cls.config
    53         config._cubes = None
       
    54         cls.repo.fill_schema()
       
    55         # hack to read the schema from data/migrschema
       
    56         config.appid = join('data', 'migratedapp')
    55         config.appid = join('data', 'migratedapp')
    57         config._apphome = cls.datapath('migratedapp')
    56         config._apphome = cls.datapath('migratedapp')
    58         global migrschema
    57         global migrschema
    59         migrschema = config.load_schema()
    58         migrschema = config.load_schema()
    60         config.appid = 'data'
    59         config.appid = 'data'