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
a197365b
Commit
a197365b
authored
Jun 22, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default mapping of translation is not same with chameleon (Zope4)
parent
3f1dba4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Core.py
...tTemplateItem/portal_components/test.erp5.testERP5Core.py
+9
-2
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Core.py
View file @
a197365b
...
...
@@ -96,6 +96,13 @@ if 1: # BBB
sm
.
registerUtility
(
ui_domain
,
ITranslationDomain
,
'ui'
)
del
portal
.
_save_ui_domain
try
:
import
chameleon
EXPECTED_TRANSLATION_MAPPING
=
None
except
ImportError
:
# BBB in zope2 talinterpreter is setting mapping to {}
EXPECTED_TRANSLATION_MAPPING
=
{}
HTTP_OK
=
200
HTTP_UNAUTHORIZED
=
401
HTTP_REDIRECT
=
302
...
...
@@ -335,7 +342,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
response
=
self
.
publish
(
'%s/portal_templates'
%
self
.
portal_id
,
self
.
auth
)
self
.
assertEqual
(
HTTP_OK
,
response
.
getStatus
())
self
.
assertTrue
((
'Business Template'
,
{}
)
self
.
assertTrue
((
'Business Template'
,
EXPECTED_TRANSLATION_MAPPING
)
in
translation_service
.
_translated
[
'ui'
])
self
.
assertTrue
(
(
'Add ${portal_type}'
,
{
'portal_type'
:
'Business Template'
})
in
...
...
@@ -355,7 +362,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
response
=
self
.
publish
(
'%s/portal_templates'
%
self
.
portal_id
,
self
.
auth
)
self
.
assertEqual
(
HTTP_OK
,
response
.
getStatus
())
self
.
assertTrue
((
'Dummy Jump Action'
,
{}
)
in
self
.
assertTrue
((
'Dummy Jump Action'
,
EXPECTED_TRANSLATION_MAPPING
)
in
translation_service
.
_translated
[
'ui'
])
def
test_error_log
(
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