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
Carlos Ramos Carreño
erp5
Commits
37d53d46
Commit
37d53d46
authored
Apr 21, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui_test: pylint py3
parent
8ddbc859
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
...stFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
+7
-7
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
...est/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
+5
-5
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory.py
...derWorkflowActionFilteredSelectionCheckWorkflowHistory.py
+4
-4
No files found.
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
View file @
37d53d46
...
...
@@ -9,7 +9,7 @@ wtool = getToolByName(context, 'portal_workflow')
result
=
'OK'
error_list
=
[]
def
assertEqual
s
(
a
,
b
,
msg
=
''
):
def
assertEqual
(
a
,
b
,
msg
=
''
):
if
a
!=
b
:
if
msg
:
error_list
.
append
(
msg
)
...
...
@@ -17,25 +17,25 @@ def assertEquals(a, b, msg=''):
error_list
.
append
(
'%r != %r'
%
(
a
,
b
))
foo_2
=
foo_module
[
'2'
]
assertEqual
s
(
foo_2
.
getSimulationState
(),
'validated'
,
assertEqual
(
foo_2
.
getSimulationState
(),
'validated'
,
'Foo 2 state is %s'
%
foo_2
.
getSimulationState
())
if
not
error_list
:
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_2
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'comment'
],
'Comment !'
)
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_2
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'custom_workflow_variable'
],
'Custom Workflow Variable'
)
foo_3
=
foo_module
[
'3'
]
assertEqual
s
(
foo_3
.
getSimulationState
(),
'validated'
,
assertEqual
(
foo_3
.
getSimulationState
(),
'validated'
,
'Foo 3 state is %s'
%
foo_3
.
getSimulationState
())
if
not
error_list
:
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_3
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'comment'
],
'Comment !'
)
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_2
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'custom_workflow_variable'
],
'Custom Workflow Variable'
)
...
...
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
View file @
37d53d46
...
...
@@ -9,7 +9,7 @@ wtool = getToolByName(context, 'portal_workflow')
result
=
'OK'
error_list
=
[]
def
assertEqual
s
(
a
,
b
,
msg
=
''
):
def
assertEqual
(
a
,
b
,
msg
=
''
):
if
a
!=
b
:
if
msg
:
error_list
.
append
(
msg
)
...
...
@@ -17,18 +17,18 @@ def assertEquals(a, b, msg=''):
error_list
.
append
(
'%r != %r'
%
(
a
,
b
))
foo_2
=
foo_module
[
'2'
]
assertEqual
s
(
foo_2
.
getSimulationState
(),
'validated'
,
assertEqual
(
foo_2
.
getSimulationState
(),
'validated'
,
'Foo 2 state is %s'
%
foo_2
.
getSimulationState
())
if
not
error_list
:
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_2
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'comment'
],
'Comment !'
)
foo_3
=
foo_module
[
'3'
]
assertEqual
s
(
foo_3
.
getSimulationState
(),
'validated'
,
assertEqual
(
foo_3
.
getSimulationState
(),
'validated'
,
'Foo 3 state is %s'
%
foo_3
.
getSimulationState
())
if
not
error_list
:
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_3
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'comment'
],
'Comment !'
)
...
...
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory.py
View file @
37d53d46
...
...
@@ -10,7 +10,7 @@ wtool = getToolByName(context, 'portal_workflow')
result
=
'OK'
error_list
=
[]
def
assertEqual
s
(
a
,
b
,
msg
=
''
):
def
assertEqual
(
a
,
b
,
msg
=
''
):
if
a
!=
b
:
if
msg
:
error_list
.
append
(
msg
)
...
...
@@ -18,15 +18,15 @@ def assertEquals(a, b, msg=''):
error_list
.
append
(
'%r != %r'
%
(
a
,
b
))
foo_2
=
foo_module
[
'2'
]
assertEqual
s
(
foo_2
.
getSimulationState
(),
'draft'
,
assertEqual
(
foo_2
.
getSimulationState
(),
'draft'
,
'Foo 2 state is %s'
%
foo_2
.
getSimulationState
())
foo_3
=
foo_module
[
'3'
]
assertEqual
s
(
foo_3
.
getSimulationState
(),
'validated'
,
assertEqual
(
foo_3
.
getSimulationState
(),
'validated'
,
'Foo 3 state is %s'
%
foo_3
.
getSimulationState
())
if
not
error_list
:
assertEqual
s
(
assertEqual
(
wtool
.
getInfoFor
(
foo_3
,
'history'
,
wf_id
=
'foo_workflow'
)[
-
2
][
'comment'
],
'Comment !'
)
...
...
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