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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
11902221
Commit
11902221
authored
Dec 20, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: add missing translation for tests
parent
eb6da0a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.py
...al_components/test.erp5.testCorporateIdentityTemplates.py
+2
-24
No files found.
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.py
View file @
11902221
...
...
@@ -40,27 +40,6 @@ import base64
host_url
=
r"https?://localhost(?::[0-9]+)?/[^/]+/"
test_url
=
"https://softinst73908.host.vifib.net/erp5/"
#def setDomainDict(script_id, script_param, script_code):
# def wrapper(func):
# @functools.wraps(func)
# def wrapped(self, *args, **kwargs):
# if script_id in self.portal.portal_skins.custom.objectIds():
# raise ValueError('Precondition failed: %s exists in custom' % script_id)
# createZODBPythonScript(
# self.portal.portal_skins.custom,
# script_id,
# script_param,
# script_code,
# )
# try:
# func(self, *args, **kwargs)
# finally:
# if script_id in self.portal.portal_skins.custom.objectIds():
# self.portal.portal_skins.custom.manage_delObjects(script_id)
# transaction.commit()
# return wrapped
# return wrapper
def
changeSkin
(
skin_name
):
"""
Change skin for following commands and attribute resolution.
...
...
@@ -108,6 +87,8 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
self
.
message_catalog
.
message_edit
(
'Data Sheet'
,
'de'
,
'Datenblatt'
,
''
)
self
.
message_catalog
.
gettext
(
'Table of Contents'
,
add
=
1
)
self
.
message_catalog
.
message_edit
(
'Table of Contents'
,
'de'
,
'Inhaltsverzeichnis'
,
''
)
self
.
message_catalog
.
gettext
(
'Adress'
,
add
=
1
)
self
.
message_catalog
.
message_edit
(
'Adress'
,
'de'
,
'Adresse'
,
''
)
# Activating a system preference if none is activated
for
preference
in
self
.
portal
.
portal_catalog
(
portal_type
=
"System Preference"
):
...
...
@@ -184,7 +165,6 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
try
:
system_preference
.
edit
(
preferred_document_conversion_server_url
=
"https://cloudooo.erp5.net/"
,
#https://softinst77579.host.vifib.net/
)
return
args
[
0
](
*
args
[
1
:],
**
kw
)
finally
:
...
...
@@ -238,7 +218,6 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
dump
=
getattr
(
self
.
portal
,
'dump_data'
,
None
)
kw
[
"batch_mode"
]
=
1
#html = getattr(test_page, kw.get("test_method"))(portal_skin=kw.get("use_skin"), **kw)
html
=
self
.
call
(
self
.
callWithNewRequestAcceptLanguage
,
self
.
callWithNewRequestForm
,
...
...
@@ -831,7 +810,6 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
)
)
#@setDomainDict("ERP5Site_getWebSiteDomainDict", "", 'return {"test.portal.erp": context.getPortalObject()}')
@
changeSkin
(
'Leaflet'
)
def
test_pdfLeafletOverrides
(
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