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
Titouan Soulard
erp5
Commits
26e87b1a
Commit
26e87b1a
authored
Apr 16, 2019
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/testBase: it's now possible to invalidate when in draft state
parent
d403f8ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5/tests/testBase.py
product/ERP5/tests/testBase.py
+1
-1
No files found.
product/ERP5/tests/testBase.py
View file @
26e87b1a
...
@@ -1274,7 +1274,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -1274,7 +1274,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
module
=
self
.
portal
.
person_module
module
=
self
.
portal
.
person_module
person
=
module
.
newContent
(
portal_type
=
'Person'
)
person
=
module
.
newContent
(
portal_type
=
'Person'
)
self
.
assertEqual
(
person
.
getValidationState
(),
'draft'
)
self
.
assertEqual
(
person
.
getValidationState
(),
'draft'
)
self
.
assert
Fals
e
(
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
person
,
self
.
assert
Tru
e
(
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
person
,
'invalidate'
))
'invalidate'
))
# test low-level implementation
# test low-level implementation
self
.
portal
.
portal_workflow
.
validation_workflow
.
_executeMetaTransition
(
self
.
portal
.
portal_workflow
.
validation_workflow
.
_executeMetaTransition
(
...
...
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