77 config = CubicWebConfiguration('data') |
77 config = CubicWebConfiguration('data') |
78 config.verbosity = 0 |
78 config.verbosity = 0 |
79 self.assert_(not isinstance(config.migration_handler(), ServerMigrationHelper)) |
79 self.assert_(not isinstance(config.migration_handler(), ServerMigrationHelper)) |
80 self.assertIsInstance(config.migration_handler(), MigrationHelper) |
80 self.assertIsInstance(config.migration_handler(), MigrationHelper) |
81 config = self.config |
81 config = self.config |
82 config.__class__.name = 'twisted' |
|
83 self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)), |
|
84 [((0, 1 ,0), TMIGRDIR+'0.1.0_common.py'), |
|
85 ((0, 1 ,0), TMIGRDIR+'0.1.0_web.py')]) |
|
86 config.__class__.name = 'repository' |
82 config.__class__.name = 'repository' |
87 self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)), |
83 self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)), |
88 [((0, 1 ,0), TMIGRDIR+'0.1.0_Any.py'), |
84 [((0, 1 ,0), TMIGRDIR+'0.1.0_Any.py'), |
89 ((0, 1 ,0), TMIGRDIR+'0.1.0_common.py'), |
85 ((0, 1 ,0), TMIGRDIR+'0.1.0_common.py'), |
90 ((0, 1 ,0), TMIGRDIR+'0.1.0_repository.py')]) |
86 ((0, 1 ,0), TMIGRDIR+'0.1.0_repository.py')]) |
91 config.__class__.name = 'all-in-one' |
87 config.__class__.name = 'all-in-one' |
92 self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)), |
88 self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)), |
93 [((0, 1 ,0), TMIGRDIR+'0.1.0_Any.py'), |
89 [((0, 1 ,0), TMIGRDIR+'0.1.0_Any.py'), |
94 ((0, 1 ,0), TMIGRDIR+'0.1.0_common.py'), |
90 ((0, 1 ,0), TMIGRDIR+'0.1.0_common.py'), |
95 ((0, 1 ,0), TMIGRDIR+'0.1.0_repository.py'), |
91 ((0, 1 ,0), TMIGRDIR+'0.1.0_repository.py')]) |
96 ((0, 1 ,0), TMIGRDIR+'0.1.0_web.py')]) |
|
97 config.__class__.name = 'repository' |
92 config.__class__.name = 'repository' |
98 |
93 |
99 |
94 |
100 from cubicweb.devtools import ApptestConfiguration, get_test_db_handler |
95 from cubicweb.devtools import ApptestConfiguration, get_test_db_handler |
101 |
96 |