Releases: kevin1024/vcrpy
1.4.0
urllib3 fixes
v1.3.0 Version 1.3.0.
custom_patches
Add custom_patches argument to VCR/Cassette objects to allow users to stub custom classes when cassettes become active.
python 2.7.9 compatibility
Add force reset around calls to actual connection from stubs, to ensure compatibility with the version of httplib/urlib2 in python 2.7.9.
Several bugfixes
Fix python3 headers field (thanks @rtaboada), fix boto test (thanks @telaviv), fix new_episodes record mode (thanks @jashugan), fix Windows connectionpool stub bug (thanks @gazpachoking)
Add urllib==1.7.1 support
Also: Make json serialize error handling correct. Improve logging of match failures.
Add py.test fixture compatibility in python 2
Use function signature preserving wrapt.decorator
to write the
decorator portion of use_cassette in order to ensure compatibility with
py.test fixtures and python 2. Move all request filtering into the
before_record_callable
.
Add before_record_response callback to use_cassette; Various bugfixes
- Move context management of use_cassette into CassetteContextDecorator so that a separate cassette is created for each invocation of a use_cassette decorated function.
- VCR now passes a callable to CassetteContextDecorator (instead of passing the arguments for cassette creation) so that changes to the VCRs default configuration can propagate to functions that have already been decorated.
- Add mock and contextlib2 as dependencies.
- Do all patching through mock.patch. This made it so that CassetteContextDecorators actually stack properly.
- Remove enter and exit from Cassette class.
- Add before_record_response hook to Cassette and VCR classes. This is mainly for the purpose of scrubbing responses.
- Version bump (1.0.3 -> 1.1.0).
- Remove contextdecorator dependency.
Requests 2.4 bugfix
Fixes a bug with the requests 2.4 stub.
Fix bug with requests 2.3.x
v1.0.2 bump version