1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

Adding support for boto3

This commit is contained in:
David de Sousa
2016-03-11 11:05:58 +01:00
parent 3dad89df3f
commit 0800b99214
2 changed files with 50 additions and 1 deletions

13
vcr/stubs/boto3_stubs.py Normal file
View File

@@ -0,0 +1,13 @@
'''Stubs for boto3'''
from botocore.vendored.requests.packages.urllib3.connectionpool import HTTPConnection, VerifiedHTTPSConnection
from ..stubs import VCRHTTPConnection, VCRHTTPSConnection
# urllib3 defines its own HTTPConnection classes, which boto3 goes ahead and assumes
# you're using. It includes some polyfills for newer features missing in older pythons.
class VCRRequestsHTTPConnection(VCRHTTPConnection, HTTPConnection):
_baseclass = HTTPConnection
class VCRRequestsHTTPSConnection(VCRHTTPSConnection, VerifiedHTTPSConnection):
_baseclass = VerifiedHTTPSConnection