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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
erp5
Commits
bf5359bc
Commit
bf5359bc
authored
Aug 16, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix testApparelTransformation
This test was using non existant categories.
parent
37f90de1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
31 deletions
+6
-31
product/ERP5/tests/testApparelTransformation.py
product/ERP5/tests/testApparelTransformation.py
+6
-31
No files found.
product/ERP5/tests/testApparelTransformation.py
View file @
bf5359bc
...
...
@@ -27,19 +27,6 @@
#
##############################################################################
#
# Skeleton ZopeTestCase
#
import
os
,
sys
if
__name__
==
'__main__'
:
execfile
(
os
.
path
.
join
(
sys
.
path
[
0
],
'framework.py'
))
# Needed in order to have a log file inside the current folder
os
.
environ
[
'EVENT_LOG_FILE'
]
=
os
.
path
.
join
(
os
.
getcwd
(),
'zLOG.log'
)
os
.
environ
[
'EVENT_LOG_SEVERITY'
]
=
'-300'
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
zLOG
import
LOG
from
Products.ERP5Type.tests.Sequence
import
SequenceList
...
...
@@ -55,7 +42,6 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
Therefore, it's better to use testTransformation for future tests
"""
run_all_test
=
1
transformation_portal_type
=
'Transformation'
component_portal_type
=
'Apparel Component'
component_variation_portal_type
=
'Apparel Component Variation'
...
...
@@ -65,25 +51,16 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
def
getTitle
(
self
):
return
"Transformation"
def
createCategories
(
self
):
TestOrderMixin
.
createCategories
(
self
)
self
.
portal
.
portal_categories
.
quantity_unit
.
newContent
(
id
=
'time'
).
newContent
(
id
=
'min'
)
def
getBusinessTemplateList
(
self
):
"""
"""
return
list
(
TestOrderMixin
.
getBusinessTemplateList
(
self
))
+
[
'erp5_mrp'
]
def
enableLightInstall
(
self
):
"""
You can override this.
Return if we should do a light install (1) or not (0)
"""
return
1
def
enableActivityTool
(
self
):
"""
You can override this.
Return if we should create (1) or not (0) an activity tool.
"""
return
1
def
stepCreateComponentDict
(
self
,
sequence
=
None
,
sequence_list
=
None
,
\
**
kw
):
"""
...
...
@@ -717,13 +694,11 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
# self.failIf(error, error_msg)
def
test_01_getAggregatedAmountList
(
self
,
quiet
=
0
,
run
=
run_all_test
):
def
test_01_getAggregatedAmountList
(
self
):
"""
Test the method getAggregatedAmountList
"""
if
not
run
:
return
sequence_list
=
SequenceList
()
# Test with a simply order without cell
sequence_string
=
'
\
CreateComponentDict
\
...
...
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