From 7dec88e8ab69c3c17c4ed0227bca42108885f4b7 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Mon, 7 Jan 2013 11:53:47 +0100 Subject: [PATCH] Disable session data manager in unit tests This fixes test_report_view (testDeferredStyle). --- product/ERP5Type/tests/runUnitTest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 4c2843681a..19ff5f2fdd 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -451,6 +451,9 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None): os.chdir(tests_home) from Products.ERP5Type.patches import noZopeHelp + from OFS.Application import AppInitializer + AppInitializer.install_session_data_manager = lambda self: None + # import ERP5TypeTestCase before calling layer.ZopeLite.setUp # XXX What if the unit test itself uses 'onsetup' ? We should be able to call # remaining 'onsetup' hooks just before executing the test suite. -- 2.30.9