Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloud-consulting
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
cloud-consulting
Commits
14a0b4aa
Commit
14a0b4aa
authored
Mar 20, 2016
by
Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to clone/delete to keep the test-files clean
parent
809d4c58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bt5/erp5_survey_ml_test/TestTemplateItem/portal_components/test.erp5.testSurveyExampleMachineLearning.py
..._components/test.erp5.testSurveyExampleMachineLearning.py
+5
-5
bt5/erp5_survey_ml_test/TestTemplateItem/portal_components/test.erp5.testSurveyExampleMachineLearning.xml
...components/test.erp5.testSurveyExampleMachineLearning.xml
+1
-0
No files found.
bt5/erp5_survey_ml_test/TestTemplateItem/portal_components/test.erp5.testSurveyExampleMachineLearning.py
View file @
14a0b4aa
...
...
@@ -42,13 +42,13 @@ class Test(ERP5TypeTestCase):
def
afterSetUp
(
self
):
self
.
portal
=
self
.
getPortalObject
()
self
.
test_id_list
=
[
"20141016-14ABCCD"
,
"20130310-A7476B"
,
"20130228-55CF76"
,
"20130301-254E01"
,
"20120817-6464C7"
,
"20141104-29F35D6"
]
#
self.test_set_list = [self.portal.answer_set_module[idd].Base_createCloneDocument(batch_mode=1) for idd in self.test_id_list]
self
.
test_set_list
=
[
self
.
portal
.
answer_set_module
[
idd
]
for
idd
in
self
.
test_id_list
]
#
self.tic()
self
.
test_set_list
=
[
self
.
portal
.
answer_set_module
[
idd
].
Base_createCloneDocument
(
batch_mode
=
1
)
for
idd
in
self
.
test_id_list
]
#
self.test_set_list = [self.portal.answer_set_module[idd] for idd in self.test_id_list]
self
.
tic
()
def
beforeTearDown
(
self
):
#
self.portal.answer_set_module.manage_delObjects([ans.getId() for ans in self.test_set_list])
#
self.tic()
self
.
portal
.
answer_set_module
.
manage_delObjects
([
ans
.
getId
()
for
ans
in
self
.
test_set_list
])
self
.
tic
()
pass
...
...
bt5/erp5_survey_ml_test/TestTemplateItem/portal_components/test.erp5.testSurveyExampleMachineLearning.xml
View file @
14a0b4aa
...
...
@@ -46,6 +46,7 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 52, 4: Unnecessary pass statement (unnecessary-pass)
</string>
<string>
W: 95, 4: Unused variable \'uncachedResults\' (unused-variable)
</string>
<string>
W: 90, 6: Unused variable \'existing_suggestion\' (unused-variable)
</string>
</tuple>
...
...
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