Commit a0a9f0ba authored by Roque's avatar Roque

fixing testsuite regular expression

parent 45a29245
......@@ -11,18 +11,16 @@ class WendelinERP5(ERP5TypeTestSuite):
def getTestList(self):
component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
"/test\.[^.]+\.[^.]+\.([^.]+).py$")
"/test\.[^.]+\.([^.]+).py$")
return ['%s:%s' % (x.group(1), x.group(2)) \
for x in [component_re.match(y) for y in glob.glob(os.path.join(
BT5, '*', '*', '*', 'test.erp5.wendelin.test*.py'))]]
BT5, '*', '*', '*', 'test.erp5.test*.py'))]]
class MasterWendelinERP5(ERP5TypeTestSuite):
def getTestList(self):
component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
"/test\.[^.]+\.[^.]+\.([^.]+).py$")
"/test\.[^.]+\.([^.]+).py$")
return ['%s:%s' % (x.group(1), x.group(2)) \
for x in [component_re.match(y) for y in glob.glob(os.path.join(
BT5, '*', '*', '*', 'test.erp5.wendelin.test*.py'))]]
BT5, '*', '*', '*', 'test.erp5.test*.py'))]]
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