# HG changeset patch # User Philippe Pepiot # Date 1552482225 -3600 # Node ID 6f42f1460f99dba7c8d383181fc95ddd2741a65e # Parent 661dd0436c015bb7244018358dd344b54a498701 [server/test] bootstrap config in setUpModule function This is test initialization, so use the setUpModule function for this diff -r 661dd0436c01 -r 6f42f1460f99 cubicweb/server/test/unittest_hook.py --- 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