test/unittest_cwctl.py
changeset 2445 6f065b366d14
parent 1977 606923dff11b
child 4212 ab6573088b4a
equal deleted inserted replaced
2444:4e61d9e4befb 2445:6f065b366d14
    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):