Add another ssl-related keyword to the httplib2 intercept

Should probably consider changing it to kwargs, but this way it is
explicit about what args are being dropped. Add a note to the docs
to indicate this is the case (it's always been true).
This commit is contained in:
Chris Dent 2017-03-05 13:58:25 +00:00
parent 4d3901a5bc
commit 17ea1a79bf
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,11 @@ httplib2_intercept
.. automodule:: wsgi_intercept.httplib2_intercept
.. note:: No effort is made to pass SSL certificate or version
information to the the underlying ``HTTPSConnection``. The
assumption is that wsgi-intercept is testing the behavior
of the application, not the connection.
Example:
.. testcode::

View File

@ -32,7 +32,8 @@ class HTTPS_WSGIInterceptorWithTimeout(HTTPSInterceptorMixin,
HTTPSConnectionWithTimeout):
def __init__(self, host, port=None, strict=None, timeout=None,
proxy_info=None, ca_certs=None, source_address=None,
disable_ssl_certificate_validation=False):
disable_ssl_certificate_validation=False,
ssl_version=None):
# ignore proxy_info and ca_certs
# In Python3 strict is deprecated