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
Ludovic Kiefer
erp5
Commits
1038d441
Commit
1038d441
authored
Feb 10, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: specify svn.erp5.org certificate file.
python 2.7.9 validates certificates by default.
parent
b9955bfa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
product/ERP5/tests/svn.erp5.org.cert
product/ERP5/tests/svn.erp5.org.cert
+24
-0
product/ERP5/tests/testTemplateTool.py
product/ERP5/tests/testTemplateTool.py
+13
-0
No files found.
product/ERP5/tests/svn.erp5.org.cert
0 → 100644
View file @
1038d441
-----BEGIN CERTIFICATE-----
MIIEAzCCA2ygAwIBAgIJAMrO5Fn3rjFgMA0GCSqGSIb3DQEBBQUAMIGYMQswCQYD
VQQGEwJGUjEbMBkGA1UECBMSTm9yZCBQYXMgZGUgQ2FsYWlzMRkwFwYDVQQHExBN
YXJjcSBlbiBCYXJvZXVsMRIwEAYDVQQKEwlOZXhlZGkgU0ExGDAWBgNVBAMTD21h
aWwubmV4ZWRpLmNvbTEjMCEGCSqGSIb3DQEJARYUd2VibWFzdGVyQG5leGVkaS5j
b20wHhcNMDgwNTIyMTM0MzAxWhcNMTgwNTIwMTM0MzAxWjCBmDELMAkGA1UEBhMC
RlIxGzAZBgNVBAgTEk5vcmQgUGFzIGRlIENh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TemplateTool.py
View file @
1038d441
...
@@ -42,6 +42,19 @@ from Products.ERP5.Tool.TemplateTool import BusinessTemplateUnknownError
...
@@ -42,6 +42,19 @@ from Products.ERP5.Tool.TemplateTool import BusinessTemplateUnknownError
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
# Specify svn.erp5.org certificate file.
import
ssl
_create_default_https_context_orig
=
ssl
.
_create_default_https_context
def
_create_default_https_context
(
purpose
=
ssl
.
Purpose
.
SERVER_AUTH
,
cafile
=
None
,
capath
=
None
,
cadata
=
None
):
return
_create_default_https_context_orig
(
purpose
,
cafile
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'svn.erp5.org.cert'
),
capath
=
capath
,
cadata
=
cadata
,
)
ssl
.
_create_default_https_context
=
_create_default_https_context
class
TestTemplateTool
(
ERP5TypeTestCase
):
class
TestTemplateTool
(
ERP5TypeTestCase
):
"""
"""
Test the template tool
Test the template tool
...
...
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