server/test/unittest_rql2sql.py
branchstable
changeset 6781 5062d86d6ffe
parent 6631 26c303c3f1aa
child 6929 e9464d975908
equal deleted inserted replaced
6780:92e4c07f86c0 6781:5062d86d6ffe
    36     register_function(stockproc)
    36     register_function(stockproc)
    37 except AssertionError, ex:
    37 except AssertionError, ex:
    38     pass # already registered
    38     pass # already registered
    39 
    39 
    40 
    40 
    41 def setup_module(*args):
    41 def setUpModule():
    42     global config, schema
    42     global config, schema
    43     config = TestServerConfiguration('data', apphome=CWRQLTC.datadir)
    43     config = TestServerConfiguration('data', apphome=CWRQLTC.datadir)
    44     config.bootstrap_cubes()
    44     config.bootstrap_cubes()
    45     schema = config.load_schema()
    45     schema = config.load_schema()
    46     schema['in_state'].inlined = True
    46     schema['in_state'].inlined = True
    47     schema['state_of'].inlined = False
    47     schema['state_of'].inlined = False
    48     schema['comments'].inlined = False
    48     schema['comments'].inlined = False
    49 
    49 
    50 def teardown_module(*args):
    50 def tearDownModule():
    51     global config, schema
    51     global config, schema
    52     del config, schema
    52     del config, schema
    53 
    53 
    54 PARSER = [
    54 PARSER = [
    55     (r"Personne P WHERE P nom 'Zig\'oto';",
    55     (r"Personne P WHERE P nom 'Zig\'oto';",