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
143
Merge Requests
143
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
c5ba66a2
Commit
c5ba66a2
authored
Jan 31, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testConstraint: py3
parent
8a9f546d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testConstraint.py
...emplateItem/portal_components/test.erp5.testConstraint.py
+6
-4
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testConstraint.py
View file @
c5ba66a2
...
...
@@ -27,6 +27,7 @@
#
##############################################################################
import
six
import
unittest
from
unittest
import
expectedFailure
...
...
@@ -1490,15 +1491,16 @@ class TestConstraint(PropertySheetTestCase):
# the error message.
error_list
=
person
.
checkConsistency
()
self
.
assertEqual
(
1
,
len
(
error_list
))
self
.
assertEqual
(
"Attribute source_title should be of type string but is of type <type 'int'>"
,
str
(
error_list
[
0
].
getMessage
()))
expected_message
=
"Attribute source_title should be of type string but is of type <class 'int'>"
if
six
.
PY2
:
expected_message
=
"Attribute source_title should be of type string but is of type <type 'int'>"
self
.
assertEqual
(
str
(
error_list
[
0
].
getMessage
()),
expected_message
)
self
.
stepLoginAsAssignee
()
# Assignee cannot access testGroup3, so full information is not
# included in the error message.
error_list
=
person
.
checkConsistency
()
self
.
assertEqual
(
1
,
len
(
error_list
))
self
.
assertNotEqual
(
"Attribute source_title should be of type string but is of type <type 'int'>"
,
str
(
error_list
[
0
].
getMessage
()))
self
.
assertEqual
(
str
(
error_list
[
0
].
getMessage
()),
'There is something wrong.'
)
def
test_PropertyTypeValidityForMultivaluedProperty
(
self
):
"""
...
...
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