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
Nikola Balog
erp5
Commits
26e83ef6
Commit
26e83ef6
authored
Jan 31, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testConstraint: py3
parent
d62e1018
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 @
26e83ef6
...
...
@@ -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
()),
expected_message
)
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