Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
ae1a45e4
Commit
ae1a45e4
authored
Jul 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support tests from portal_components.
parent
814b5a2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
product/ERP5Type/tests/ERP5TypeTestSuite.py
product/ERP5Type/tests/ERP5TypeTestSuite.py
+3
-0
No files found.
product/ERP5Type/tests/ERP5TypeTestSuite.py
View file @
ae1a45e4
...
...
@@ -273,6 +273,8 @@ class ProjectTestSuite(ERP5TypeTestSuite):
path_list = self._search_path_list or sys.path
product_test_file_glob = pjoin('
tests
', '
test
*
.
py
')
bt_test_file_glob = pjoin('
TestTemplateItem
', '
test
*
.
py
')
bt_component_test_file_glob = pjoin('
TestTemplateItem
',
'
portal_components
', '
test
*
.
py
')
test_file_list = []
extend = test_file_list.extend
for product_dir in self._searchDirectory('
product
', path_list):
...
...
@@ -281,6 +283,7 @@ class ProjectTestSuite(ERP5TypeTestSuite):
for bt_dir in self._searchDirectory('
bt5
', path_list):
for bt_id in self._bt_list:
extend(_glob(pjoin(bt_dir, bt_id, bt_test_file_glob)))
extend(_glob(pjoin(bt_dir, bt_id, bt_component_test_file_glob)))
return list(frozenset((path.splitext(path.basename(name))[0]
for name in test_file_list)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment