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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
68630914
Commit
68630914
authored
May 31, 2024
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testBase: Add a test with document id that has non-ascii characters
parent
906794ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
.../TestTemplateItem/portal_components/test.erp5.testBase.py
+19
-0
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
View file @
68630914
...
@@ -1406,6 +1406,25 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -1406,6 +1406,25 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
newSecurityManager
(
None
,
test_user
)
newSecurityManager
(
None
,
test_user
)
assertActorHistoryEqual
([
user_1_title
,
user_2_title
,
user_3_user_id
,
existing_non_erp5_user_id
])
assertActorHistoryEqual
([
user_1_title
,
user_2_title
,
user_3_user_id
,
existing_non_erp5_user_id
])
def
test_idWithSpecialCharacter
(
self
,
quiet
=
quiet
,
run
=
run_all_test
):
"""
Test that an id with non-ascii characters
can well be used an indexed
"""
portal
=
self
.
getPortal
()
portal_type
=
"Organisation"
module
=
portal
.
getDefaultModule
(
portal_type
=
portal_type
)
obj
=
module
.
newContent
(
id
=
'tést'
,
portal_type
=
portal_type
)
self
.
tic
()
# no error in indexation
# Check that the new object is retreivable by its id
self
.
assertEqual
(
obj
.
getId
(),
'tést'
)
self
.
assertIsInstance
(
obj
.
getId
(),
str
)
self
.
assertEqual
(
module
.
_getOb
(
obj
.
getId
()).
getId
(),
obj
.
getId
())
self
.
assertIsInstance
(
module
.
_getOb
(
obj
.
getId
()).
getId
(),
str
)
class
TestERP5PropertyManager
(
unittest
.
TestCase
):
class
TestERP5PropertyManager
(
unittest
.
TestCase
):
"""Tests for ERP5PropertyManager.
"""Tests for ERP5PropertyManager.
...
...
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