Commit dc786f9e authored by Jérome Perrin's avatar Jérome Perrin

ERP5TypeLiveTestCase: fix runing only one class from a module

This only apply for running live tests of a test component that defines
multiple classes

You can use for example,
testStandardConfigurationWorkflow.TestStandardConfiguratorWorkflow in
"Tests" field of "Live Tests" dialog to run only
TestStandardConfiguratorWorkflow test class

(cherry picked from commit ced90df1)
parent f73faf7e
......@@ -179,7 +179,7 @@ class ERP5TypeLiveTestLoader(ERP5TypeTestLoader):
import erp5.component.test
try:
__import__('erp5.component.test.' + name,
__import__('erp5.component.test.' + name.split('.')[0],
fromlist=['erp5.component.test'],
level=0)
except ImportError:
......
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