server/test/unittest_schemaserial.py
branchstable
changeset 6781 5062d86d6ffe
parent 6632 78878f5a8166
child 8223 b1a685038c3b
equal deleted inserted replaced
6780:92e4c07f86c0 6781:5062d86d6ffe
    23 from logilab.common.testlib import TestCase, unittest_main
    23 from logilab.common.testlib import TestCase, unittest_main
    24 
    24 
    25 from cubicweb.schema import CubicWebSchemaLoader
    25 from cubicweb.schema import CubicWebSchemaLoader
    26 from cubicweb.devtools import TestServerConfiguration
    26 from cubicweb.devtools import TestServerConfiguration
    27 
    27 
    28 def setup_module(*args):
    28 def setUpModule(*args):
    29     global schema, config
    29     global schema, config
    30     loader = CubicWebSchemaLoader()
    30     loader = CubicWebSchemaLoader()
    31     config = TestServerConfiguration('data', apphome=Schema2RQLTC.datadir)
    31     config = TestServerConfiguration('data', apphome=Schema2RQLTC.datadir)
    32     config.bootstrap_cubes()
    32     config.bootstrap_cubes()
    33     schema = loader.load(config)
    33     schema = loader.load(config)
    34 
    34 
    35 def teardown_module(*args):
    35 def tearDownModule(*args):
    36     global schema, config
    36     global schema, config
    37     del schema, config
    37     del schema, config
    38 
    38 
    39 from cubicweb.server.schemaserial import *
    39 from cubicweb.server.schemaserial import *
    40 from cubicweb.server.schemaserial import _erperms2rql as erperms2rql
    40 from cubicweb.server.schemaserial import _erperms2rql as erperms2rql