Skip to content

Releases: kevin1024/vcrpy

Version 1.0 - New cassette format, filtering and ignoring

10 May 22:07
Compare
Choose a tag to compare

BACKWARDS INCOMPATIBLE: Please see the 'upgrade' section in the README.

Add support for filtering sensitive data from requests, matching query strings after the order changes and improving the built-in matchers, (thanks to @mshytikov), support for ignoring requests to certain hosts, bump supported Python3 version to 3.4, fix some bugs with Boto support (thanks @marusich), fix error with URL field capitalization in README (thanks @simon-weber), added some log messages to help with debugging, added all_played property on cassette (thanks @mshytikov)

Decorators, multiple headers, and better error messages

11 Jan 19:35
Compare
Choose a tag to compare

Store response headers as a list since a HTTP response can have the same header twice (happens with set-cookie sometimes). This has the added benefit of preserving the order of headers. Thanks @smallcode for the bug report leading to this change. I have made an effort to ensure backwards compatibility with the old cassettes' header storage mechanism, but if you want to upgrade to the new header storage, you should delete your cassettes and re-record them. Also this release adds better error messages (thanks @msabramo) and adds support for using VCR as a decorator (thanks @smallcode for the motivation)

Change response_of to responses_of, bugfixes

02 Dec 00:49
Compare
Choose a tag to compare

Change the response_of method to responses_of since cassettes can now contain more than one response for a request. Since this changes the API, I'm bumping the version. Also includes 2 bugfixes: a better error message when attempting to overwrite a cassette file, and a fix for a bug with requests sessions (thanks @msabramo)

Multiple Requests Behavior Changes

10 Nov 22:38
Compare
Choose a tag to compare

Change default request recording behavior for multiple requests. If you make the same request multiple times to the same URL, the response might be different each time (maybe the response has a timestamp in it or something), so this will make the same request multiple times and save them all. Then, when you are replaying the cassette, the responses will be played back in the same order in which they were received. If you were making multiple requests to the same URL in a cassette before version 0.4.0, you might need to regenerate your cassette files. Also, removes support for the cassette.play_count counter API, since individual requests aren't unique anymore. A cassette might contain the same request several times. Also removes secure overwrite feature since that was breaking overwriting files in Windows, and fixes a bug preventing requests's automatic decompression from working

Fix Requests 2

25 Oct 07:59
Compare
Choose a tag to compare
Fix Requests 2, Version Bump to 0.3.5

This fixes a compatiblity issue with the new version of requests.
Bumps the release version to 0.3.5, and closes #39.

Fix Windows file saving

25 Oct 07:58
Compare
Choose a tag to compare
v0.3.4

bump for version 0.3.4

Fix HTTP path bug

17 Sep 23:36
Compare
Choose a tag to compare

Fix issue causing full paths to be sent on the HTTP request line.

Request Matching and Record Modes

17 Sep 06:58
Compare
Choose a tag to compare

Backwards incompatible release - Added support for record modes, and changed the default recording behavior to the "once" record mode. Please see the documentation on record modes for more. Added support for custom request matching, and changed the default request matching behavior to match only on the URL and method. Also, improved the httplib mocking to add support for the HTTPConnection.send() method. This means that requests won't actually be sent until the response is read, since I need to record the entire request in order to match up the appropriate response. I don't think this should cause any issues unless you are sending requests without ever loading the response (which none of the standard httplib wrappers do, as far as I know. Thanks to @fatuhoku for some of the ideas and the motivation behind this release.

Fix install issue

30 Aug 18:02
Compare
Choose a tag to compare

This is a minor version increase to fix an installation issue

Configtastic

28 Aug 00:08
Compare
Choose a tag to compare
  • Added configuration API, which lets you configure some settings on VCR (see the README).
  • VCR no longer saves cassettes if they haven't changed at all (thanks @sirpengi)
  • VCR now supports JSON as well as YAML (thanks @sirpengi).
  • Added amazing new skeumorphic logo, thanks @hairarrow.