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
Sven Franck
erp5
Commits
477868b0
Commit
477868b0
authored
May 29, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corportate_identity_test: no need to harecoded conversion url
parent
89df3005
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplateList.py
...components/test.erp5.testCorporateIdentityTemplateList.py
+0
-21
No files found.
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplateList.py
View file @
477868b0
...
...
@@ -157,26 +157,6 @@ class TestCorporateIdentityTemplateList(ERP5TypeTestCase):
def
call
(
self
,
*
args
,
**
kw
):
return
args
[
0
](
*
args
[
1
:],
**
kw
)
def
callWithPublicCloudoooOnSystemPreference
(
self
,
*
args
,
**
kw
):
"""
Calls 'doSomething' with '*args' and '**kw' after setting cloudooo server
url preference to 'https://cloudooo.erp5.net/' and finally restores the
preference to its original value.
"""
system_preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
if
system_preference
is
None
:
return
args
[
0
](
*
args
[
1
:],
**
kw
)
preferred_document_conversion_server_url
=
system_preference
.
getPreferredDocumentConversionServerUrl
()
try
:
system_preference
.
edit
(
preferred_document_conversion_server_url
=
"https://cloudooo.erp5.net/"
,
)
return
args
[
0
](
*
args
[
1
:],
**
kw
)
finally
:
system_preference
.
edit
(
preferred_document_conversion_server_url
=
preferred_document_conversion_server_url
,
)
def
callWithNewRequestAcceptLanguage
(
self
,
*
args
,
**
kw
):
"""
Call 'doSomething' with '*args' and '**kw' after setting
...
...
@@ -266,7 +246,6 @@ class TestCorporateIdentityTemplateList(ERP5TypeTestCase):
)
pdf_data
=
self
.
call
(
self
.
callWithPublicCloudoooOnSystemPreference
,
self
.
callWithNewRequestAcceptLanguage
,
self
.
callWithNewRequestForm
,
pdf_kw
,
...
...
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