equal
deleted
inserted
replaced
7 """ |
7 """ |
8 import sys |
8 import sys |
9 import os |
9 import os |
10 from os.path import dirname, join, abspath |
10 from os.path import dirname, join, abspath |
11 |
11 |
|
12 from logilab.common.modutils import cleanup_sys_modules |
12 from logilab.common.testlib import TestCase, unittest_main |
13 from logilab.common.testlib import TestCase, unittest_main |
13 from logilab.common.changelog import Version |
14 from logilab.common.changelog import Version |
14 |
15 |
15 from cubicweb.devtools import ApptestConfiguration |
16 from cubicweb.devtools import ApptestConfiguration |
16 |
17 |
24 CUSTOM_CUBES_DIR = abspath(join(dirname(__file__), 'data', 'cubes')) |
25 CUSTOM_CUBES_DIR = abspath(join(dirname(__file__), 'data', 'cubes')) |
25 |
26 |
26 |
27 |
27 class CubicWebConfigurationTC(TestCase): |
28 class CubicWebConfigurationTC(TestCase): |
28 def setUp(self): |
29 def setUp(self): |
|
30 cleanup_sys_modules([CUSTOM_CUBES_DIR, ApptestConfiguration.CUBES_DIR]) |
29 self.config = ApptestConfiguration('data') |
31 self.config = ApptestConfiguration('data') |
30 self.config._cubes = ('email', 'file') |
32 self.config._cubes = ('email', 'file') |
31 |
33 |
32 def tearDown(self): |
34 def tearDown(self): |
33 os.environ.pop('CW_CUBES_PATH', None) |
35 os.environ.pop('CW_CUBES_PATH', None) |