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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
ebc377f4
Commit
ebc377f4
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
ce9aed3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
.../TestTemplateItem/portal_components/test.erp5.testBase.py
+13
-0
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
View file @
ebc377f4
...
...
@@ -1406,6 +1406,19 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
newSecurityManager
(
None
,
test_user
)
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
()
class
TestERP5PropertyManager
(
unittest
.
TestCase
):
"""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