equal
deleted
inserted
replaced
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 |