Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
b2e718b8
Commit
b2e718b8
authored
Jan 06, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revise tests to follow event_simulation_workflow spec.
parent
d135f0d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
+4
-4
No files found.
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
View file @
b2e718b8
...
@@ -617,7 +617,7 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
...
@@ -617,7 +617,7 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
self
.
failUnlessUserCanPassWorkflowTransition
(
self
.
failUnlessUserCanPassWorkflowTransition
(
username
,
'cancel_action'
,
event
)
username
,
'cancel_action'
,
event
)
# everybody can
submit
# everybody can
plan
for
username
in
self
.
all_username_list
:
for
username
in
self
.
all_username_list
:
self
.
failUnlessUserCanPassWorkflowTransition
(
self
.
failUnlessUserCanPassWorkflowTransition
(
username
,
'plan_action'
,
event
)
username
,
'plan_action'
,
event
)
...
@@ -625,17 +625,17 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
...
@@ -625,17 +625,17 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
event
.
plan
()
event
.
plan
()
self
.
assertEquals
(
'planned'
,
event
.
getSimulationState
())
self
.
assertEquals
(
'planned'
,
event
.
getSimulationState
())
# everybody can
request or post a submitt
ed event
# everybody can
confirm or send a plann
ed event
for
username
in
self
.
all_username_list
:
for
username
in
self
.
all_username_list
:
self
.
failUnlessUserCanPassWorkflowTransition
(
self
.
failUnlessUserCanPassWorkflowTransition
(
username
,
'
order
_action'
,
event
)
username
,
'
confirm
_action'
,
event
)
self
.
failUnlessUserCanPassWorkflowTransition
(
self
.
failUnlessUserCanPassWorkflowTransition
(
username
,
'start_action'
,
event
)
username
,
'start_action'
,
event
)
event
.
start
()
event
.
start
()
self
.
assertEquals
(
'started'
,
event
.
getSimulationState
())
self
.
assertEquals
(
'started'
,
event
.
getSimulationState
())
# everybody can deliver a
posted
event
# everybody can deliver a
sent
event
for
username
in
self
.
all_username_list
:
for
username
in
self
.
all_username_list
:
self
.
failUnlessUserCanPassWorkflowTransition
(
self
.
failUnlessUserCanPassWorkflowTransition
(
username
,
'deliver_action'
,
event
)
username
,
'deliver_action'
,
event
)
...
...
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