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
Leo Le Bouter
erp5
Commits
5892f30f
Commit
5892f30f
authored
Jul 10, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator_standard: trivial simplification in test
* Use assertIn * Do not introduce useless variables
parent
fec9dc50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+7
-21
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
5892f30f
...
...
@@ -912,27 +912,13 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
"""
Configurator can configure some PropertySheets.
"""
portal
=
self
.
portal
purchase_order
=
portal
.
portal_types
[
'Purchase Order'
]
purchase_order_line
=
portal
.
portal_types
[
'Purchase Order Line'
]
sale_order
=
portal
.
portal_types
[
'Sale Order'
]
sale_order_line
=
portal
.
portal_types
[
'Sale Order Line'
]
inventory
=
portal
.
portal_types
[
'Inventory'
]
sale_packing_list
=
portal
.
portal_types
[
'Sale Packing List'
]
sale_packing_list_line
=
portal
.
portal_types
[
'Sale Packing List Line'
]
self
.
assertEqual
(
True
,
'TradeOrderLine'
in
sale_packing_list_line
.
getTypePropertySheetList
())
self
.
assertEqual
(
True
,
'TradeOrder'
in
purchase_order
.
getTypePropertySheetList
())
self
.
assertEqual
(
True
,
'TradeOrderLine'
in
purchase_order_line
.
getTypePropertySheetList
())
self
.
assertEqual
(
True
,
'TradeOrder'
in
sale_order
.
getTypePropertySheetList
())
self
.
assertEqual
(
True
,
'TradeOrderLine'
in
sale_order_line
.
getTypePropertySheetList
())
self
.
assertEqual
(
True
,
'InventoryConstraint'
in
inventory
.
getTypePropertySheetList
())
portal_types
=
self
.
portal
.
portal_types
self
.
assertIn
(
'TradeOrderLine'
,
portal_types
[
'Sale Packing List Line'
].
getTypePropertySheetList
())
self
.
assertIn
(
'TradeOrder'
,
portal_types
[
'Purchase Order'
].
getTypePropertySheetList
())
self
.
assertIn
(
'TradeOrderLine'
,
portal_types
[
'Purchase Order Line'
].
getTypePropertySheetList
())
self
.
assertIn
(
'TradeOrder'
,
portal_types
[
'Sale Order'
].
getTypePropertySheetList
())
self
.
assertIn
(
'TradeOrderLine'
,
portal_types
[
'Sale Order Line'
].
getTypePropertySheetList
())
self
.
assertIn
(
'InventoryConstraint'
,
portal_types
[
'Inventory'
].
getTypePropertySheetList
())
def
stepCheckSaleOrderSimulation
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
...
...
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