equal
deleted
inserted
replaced
18 """cubicweb.migration unit tests""" |
18 """cubicweb.migration unit tests""" |
19 |
19 |
20 from os.path import dirname, join |
20 from os.path import dirname, join |
21 from logilab.common.testlib import TestCase, unittest_main |
21 from logilab.common.testlib import TestCase, unittest_main |
22 |
22 |
23 from cubicweb.devtools import TestServerConfiguration |
23 from cubicweb import devtools |
24 from cubicweb.cwconfig import CubicWebConfiguration |
24 from cubicweb.cwconfig import CubicWebConfiguration |
25 from cubicweb.migration import filter_scripts, version_strictly_lower |
25 from cubicweb.migration import filter_scripts, version_strictly_lower |
26 |
26 |
27 |
27 |
28 class Schema(dict): |
28 class Schema(dict): |
30 return e_type in self |
30 return e_type in self |
31 |
31 |
32 SMIGRDIR = join(dirname(__file__), 'data', 'server_migration') + '/' |
32 SMIGRDIR = join(dirname(__file__), 'data', 'server_migration') + '/' |
33 TMIGRDIR = join(dirname(__file__), 'data', 'migration') + '/' |
33 TMIGRDIR = join(dirname(__file__), 'data', 'migration') + '/' |
34 |
34 |
35 class MigrTestConfig(TestServerConfiguration): |
35 |
|
36 class MigrTestConfig(devtools.TestServerConfiguration): |
36 verbosity = 0 |
37 verbosity = 0 |
37 |
38 |
38 def migration_scripts_dir(cls): |
39 def migration_scripts_dir(cls): |
39 return SMIGRDIR |
40 return SMIGRDIR |
40 |
41 |