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
Laurent S
erp5
Commits
e7797d08
Commit
e7797d08
authored
Aug 29, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testStandardConfigurationWorkflow: pass transitions using doActionFor
Otherwise we don't check constraints & security
parent
23d660e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+9
-3
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
e7797d08
...
@@ -809,6 +809,8 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -809,6 +809,8 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
currency
.
getRelativeUrl
(),
self
.
assertEqual
(
currency
.
getRelativeUrl
(),
sale_trade_condition
.
getPriceCurrency
())
sale_trade_condition
.
getPriceCurrency
())
self
.
assertEqual
([],
sale_trade_condition
.
checkConsistency
())
def
stepCheckPurchaseTradeCondition
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepCheckPurchaseTradeCondition
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
"""
Check if Purchase Trade Condition object has been created.
Check if Purchase Trade Condition object has been created.
...
@@ -977,17 +979,18 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -977,17 +979,18 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
# stepPlanSaleOrders
# stepPlanSaleOrders
self
.
assertEqual
(
order
.
getSimulationState
(),
'draft'
)
self
.
assertEqual
(
order
.
getSimulationState
(),
'draft'
)
order
.
plan
()
self
.
_loginAsUser
(
self
.
sales_manager_reference
)
self
.
portal
.
portal_workflow
.
doActionFor
(
order
,
'plan_action'
)
self
.
tic
()
self
.
tic
()
self
.
assertEqual
(
order
.
getSimulationState
(),
'planned'
)
self
.
assertEqual
(
order
.
getSimulationState
(),
'planned'
)
# stepOrderSaleOrders
# stepOrderSaleOrders
order
.
order
(
)
self
.
portal
.
portal_workflow
.
doActionFor
(
order
,
'order_action'
)
self
.
tic
()
self
.
tic
()
self
.
assertEqual
(
order
.
getSimulationState
(),
'ordered'
)
self
.
assertEqual
(
order
.
getSimulationState
(),
'ordered'
)
# stepConfirmSaleOrders
# stepConfirmSaleOrders
order
.
confirm
(
)
self
.
portal
.
portal_workflow
.
doActionFor
(
order
,
'confirm_action'
)
self
.
tic
()
self
.
tic
()
self
.
assertEqual
(
order
.
getSimulationState
(),
'confirmed'
)
self
.
assertEqual
(
order
.
getSimulationState
(),
'confirmed'
)
...
@@ -1157,6 +1160,9 @@ class TestConsultingConfiguratorWorkflow(StandardConfigurationMixin):
...
@@ -1157,6 +1160,9 @@ class TestConsultingConfiguratorWorkflow(StandardConfigurationMixin):
# set preference group
# set preference group
self
.
preference_group
=
'group/my_group'
self
.
preference_group
=
'group/my_group'
# login as manager
self
.
login
()
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
os
.
remove
(
self
.
categories_file_path
)
os
.
remove
(
self
.
categories_file_path
)
os
.
remove
(
self
.
roles_file_path
)
os
.
remove
(
self
.
roles_file_path
)
...
...
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