Commit b168d9b0 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Test: Add OfficeJS Test suite

parent 03d13c82
# test_suite is provided by 'run_test_suite'
from glob import glob
from test_suite import ERP5TypeTestSuite
import os, subprocess, re
import sys
class OfficeJS(ERP5TypeTestSuite):
"""
"""
def getTestList(self):
test_list = []
path = sys.path[0]
component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
"/test\.[^.]+\.([^.]+).py$")
for test_path in (
glob('%s/bt5/*/TestTemplateItem/portal_components/test.ojs.*.py' % path) +
glob('%s/bt5/*/TestTemplateItem/portal_components/test.*.testOfficeJS*.py' % path)
):
component_re_match = component_re.match(test_path)
if component_re_match is not None:
test_case = "%s:%s" % (component_re_match.group(1),
component_re_match.group(2))
else:
test_case = test_path.split(os.sep)[-1][:-3] # remove .py
test_list.append(test_case)
return test_list
\ No newline at end of file
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