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
Labels
Merge Requests
144
Merge Requests
144
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
b9e4408e
Commit
b9e4408e
authored
Mar 17, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Administration: py3
parent
d5f331cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
bt5/erp5_administration/TestTemplateItem/portal_components/test.erp5.testERP5Administration.py
...tem/portal_components/test.erp5.testERP5Administration.py
+9
-2
No files found.
bt5/erp5_administration/TestTemplateItem/portal_components/test.erp5.testERP5Administration.py
View file @
b9e4408e
...
...
@@ -29,6 +29,7 @@
import
unittest
import
time
import
six
from
Products.ERP5.tests.testInventoryAPI
import
InventoryAPITestCase
class
TestERP5Administration
(
InventoryAPITestCase
):
...
...
@@ -105,8 +106,14 @@ class TestERP5Administration(InventoryAPITestCase):
line_list
=
alarm
.
Alarm_viewConsistencyCheckReport
.
listbox
.
get_value
(
'default'
,
render_format
=
'list'
)
self
.
assertEqual
(
1
,
len
([
line
for
line
in
line_list
if
line
.
isDataLine
()]))
self
.
assertEqual
(
str
(
line_list
[
-
1
].
getColumnProperty
(
'getTranslatedMessage'
)),
"Attribute title should be of type string but is of type <type 'int'>"
)
if
six
.
PY2
:
self
.
assertEqual
(
str
(
line_list
[
-
1
].
getColumnProperty
(
'getTranslatedMessage'
)),
"Attribute title should be of type string but is of type <type 'int'>"
)
else
:
self
.
assertEqual
(
str
(
line_list
[
-
1
].
getColumnProperty
(
'getTranslatedMessage'
)),
"Attribute title should be of type string but is of type <class 'int'>"
)
# this alarm can solve, as long as the constraints can solve, this is the
# case of PropertyTypeValidity
...
...
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