Commit e5e57621 authored by Julien Muchembled's avatar Julien Muchembled

fixup! Make ERP5TypeTestCase.publish() usable in live tests

Commit 89a17f04 broke live tests using
ERP5TypeTestCase.publish when they are run from command line. Note that such
live test could not be run from ERP5.

More refactoring is needed because ERP5TypeLiveTestCase should only take care
of adapting ERP5TypeTestCaseMixin to an ERP5 environment, and runUnitTest
should never use it. Commit fd9219af looks a
wrong approach.
parent 804dd75b
......@@ -291,6 +291,9 @@ class ERP5TypeTestLoader(unittest.TestLoader):
super(ComponentTestCase, self).setUp()
self._callSetUpOnce()
ERP5TypeLiveTestCase.publish
publish = ERP5TypeTestCase.publish
# Bootstrap has been done in loadTestsFromNames, so the test can now
# be loaded like any Live Test on a real instance
if ComponentTestCase not in ERP5TypeTestCase.__bases__:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment