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
aebf41b3
Commit
aebf41b3
authored
Mar 17, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Administration: py3
parent
9e536979
Changes
1
Show 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 @
aebf41b3
...
...
@@ -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'
)),
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