common/test/unittest_migration.py
branchtls-sprint
changeset 755 cf75a7dbd99a
parent 0 b97547f5f1fa
child 1802 d628defebc17
equal deleted inserted replaced
754:937f5feac7f0 755:cf75a7dbd99a
    28 class MigrationToolsTC(TestCase):
    28 class MigrationToolsTC(TestCase):
    29     def setUp(self):
    29     def setUp(self):
    30         self.config = MigrTestConfig('data')
    30         self.config = MigrTestConfig('data')
    31         from yams.schema import Schema
    31         from yams.schema import Schema
    32         self.config.load_schema = lambda expand_cubes=False: Schema('test')
    32         self.config.load_schema = lambda expand_cubes=False: Schema('test')
       
    33         self.config.__class__.cubicweb_vobject_path = frozenset()
       
    34         self.config.__class__.cube_vobject_path = frozenset()
    33         
    35         
    34     def test_migration_files_base(self):
    36     def test_migration_files_base(self):
    35         self.assertListEquals(migration_files(self.config, [('cubicweb', (2,3,0), (2,4,0)),
    37         self.assertListEquals(migration_files(self.config, [('cubicweb', (2,3,0), (2,4,0)),
    36                                                             ('TEMPLATE', (0,0,2), (0,0,3))]),
    38                                                             ('TEMPLATE', (0,0,2), (0,0,3))]),
    37                               [SMIGRDIR+'bootstrapmigration_repository.py',
    39                               [SMIGRDIR+'bootstrapmigration_repository.py',