equal
deleted
inserted
replaced
11 from logilab.common.testlib import TestCase, unittest_main |
11 from logilab.common.testlib import TestCase, unittest_main |
12 |
12 |
13 if os.environ.get('APYCOT_ROOT'): |
13 if os.environ.get('APYCOT_ROOT'): |
14 root = os.environ['APYCOT_ROOT'] |
14 root = os.environ['APYCOT_ROOT'] |
15 CUBES_DIR = '%s/local/share/cubicweb/cubes/' % root |
15 CUBES_DIR = '%s/local/share/cubicweb/cubes/' % root |
16 os.environ['CW_CUBES'] = CUBES_DIR |
16 os.environ['CW_CUBES_PATH'] = CUBES_DIR |
17 REGISTRY_DIR = '%s/etc/cubicweb.d/' % root |
17 REGISTRY_DIR = '%s/etc/cubicweb.d/' % root |
18 os.environ['CW_REGISTRY_DIR'] = REGISTRY_DIR |
18 os.environ['CW_INSTANCES_DIR'] = REGISTRY_DIR |
19 |
19 |
20 from cubicweb.cwconfig import CubicWebConfiguration |
20 from cubicweb.cwconfig import CubicWebConfiguration |
21 CubicWebConfiguration.load_cwctl_plugins() |
21 CubicWebConfiguration.load_cwctl_plugins() |
22 |
22 |
23 class CubicWebCtlTC(TestCase): |
23 class CubicWebCtlTC(TestCase): |