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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
f5daca6b
Commit
f5daca6b
authored
Aug 19, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: fix testWorklist + add XXX comment
parent
2049c8a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
...tTemplateItem/portal_components/test.erp5.testWorklist.py
+2
-2
product/ERP5Workflow/mixin/guardable.py
product/ERP5Workflow/mixin/guardable.py
+2
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
View file @
f5daca6b
...
@@ -507,9 +507,9 @@ class TestWorklist(testWorkflowMixin):
...
@@ -507,9 +507,9 @@ class TestWorklist(testWorkflowMixin):
self
.
assertEqual
([
'Group1'
,
'Group2'
],
worklist_value
.
guard
.
groups
)
self
.
assertEqual
([
'Group1'
,
'Group2'
],
worklist_value
.
guard
.
groups
)
# expression
# expression
worklist_value
.
setGuardExpression
(
''
)
worklist_value
.
setGuardExpression
(
''
)
self
.
assertEqual
(
''
,
worklist_value
.
guard
.
expr
)
self
.
assertEqual
(
None
,
worklist_value
.
guard
.
expr
)
worklist_value
.
setGuardExpression
(
'python: "Hello, world"'
)
worklist_value
.
setGuardExpression
(
'python: "Hello, world"'
)
self
.
assertEqual
(
worklist_value
.
guard
.
expr
,
'python: "Hello, world"'
)
self
.
assertEqual
(
worklist_value
.
guard
.
expr
.
text
,
'python: "Hello, world"'
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
product/ERP5Workflow/mixin/guardable.py
View file @
f5daca6b
from
Products.DCWorkflow.Guard
import
Guard
from
Products.DCWorkflow.Guard
import
Guard
# XXX(WORKFLOW) ^ should not use DCWorkflow Guard class
from
Products.CMFCore.Expression
import
Expression
from
Products.CMFCore.Expression
import
Expression
class
GuardableMixin
(
object
):
class
GuardableMixin
(
object
):
...
...
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