--- a/server/test/unittest_schemaserial.py Mon Oct 25 16:28:05 2010 +0200
+++ b/server/test/unittest_schemaserial.py Mon Oct 25 17:15:46 2010 +0200
@@ -26,14 +26,16 @@
from cubicweb.schema import CubicWebSchemaLoader
from cubicweb.devtools import TestServerConfiguration
-loader = CubicWebSchemaLoader()
-config = TestServerConfiguration('data')
-config.bootstrap_cubes()
-schema = loader.load(config)
+def setup_module(*args):
+ global schema, config
+ loader = CubicWebSchemaLoader()
+ config = TestServerConfiguration('data', apphome=Schema2RQLTC.datadir)
+ config.bootstrap_cubes()
+ schema = loader.load(config)
def teardown_module(*args):
- global schema, config, loader
- del schema, config, loader
+ global schema, config
+ del schema, config
from cubicweb.server.schemaserial import *
from cubicweb.server.schemaserial import _erperms2rql as erperms2rql