cubicweb/server/test/unittest_hook.py
changeset 12513 6f42f1460f99
parent 12036 4c2c731f9190
child 12514 eac7f5b20f9f
--- a/cubicweb/server/test/unittest_hook.py	Mon Mar 11 17:43:23 2019 +0100
+++ b/cubicweb/server/test/unittest_hook.py	Wed Mar 13 14:03:45 2019 +0100
@@ -63,9 +63,11 @@
     pass
 
 
-config = devtools.TestServerConfiguration('data', __file__)
-config.bootstrap_cubes()
-schema = config.load_schema()
+def setUpModule():
+    global config, schema
+    config = devtools.TestServerConfiguration('data', __file__)
+    config.bootstrap_cubes()
+    schema = config.load_schema()
 
 def tearDownModule(*args):
     global config, schema