]>
khamidou — GitHub mirrors - vcrpy.git/log
Max Shytikov [Tue, 22 Apr 2014 01:09:13 +0000 (03:09 +0200)]
Fixed migration for one file
Max Shytikov [Mon, 21 Apr 2014 23:00:02 +0000 (01:00 +0200)]
Added migration script for old cassettes
Max Shytikov [Mon, 21 Apr 2014 19:46:14 +0000 (21:46 +0200)]
Formatted setup.py to make flake8 happy
Max Shytikov [Mon, 14 Apr 2014 21:53:38 +0000 (23:53 +0200)]
Added integration tests for matchers
Max Shytikov [Thu, 10 Apr 2014 23:37:17 +0000 (01:37 +0200)]
Updated README
Max Shytikov [Thu, 10 Apr 2014 23:35:57 +0000 (01:35 +0200)]
Added 'protocol' to Request for backwards compatibility
Max Shytikov [Thu, 10 Apr 2014 23:33:30 +0000 (01:33 +0200)]
Fixed available matchers declaration
Max Shytikov [Thu, 10 Apr 2014 23:32:10 +0000 (01:32 +0200)]
Replaced 'url' mather with 'uri'.
Max Shytikov [Mon, 7 Apr 2014 00:03:32 +0000 (02:03 +0200)]
Updated 'set' to be compatible with 2.6
Max Shytikov [Sun, 6 Apr 2014 23:57:35 +0000 (01:57 +0200)]
Added scheme to default 'match_on'
Max Shytikov [Sun, 6 Apr 2014 23:56:55 +0000 (01:56 +0200)]
Added 'scheme' to Request with matcher and test
Max Shytikov [Sun, 6 Apr 2014 23:35:52 +0000 (01:35 +0200)]
Updated default 'match_on'
Max Shytikov [Sun, 6 Apr 2014 23:30:48 +0000 (01:30 +0200)]
Improved test samples
Max Shytikov [Sun, 6 Apr 2014 23:30:31 +0000 (01:30 +0200)]
Added query to Request with matcher and test
Max Shytikov [Sun, 6 Apr 2014 23:13:51 +0000 (01:13 +0200)]
Added path to Request with matcher and test
Max Shytikov [Sun, 6 Apr 2014 23:12:05 +0000 (01:12 +0200)]
Added port to Request with matcher and test
Max Shytikov [Sun, 6 Apr 2014 23:08:57 +0000 (01:08 +0200)]
Added test and impl for Request 'host' attribute
Max Shytikov [Sun, 6 Apr 2014 22:55:06 +0000 (00:55 +0200)]
Refactored unit test for matchers
Max Shytikov [Sun, 6 Apr 2014 21:49:54 +0000 (23:49 +0200)]
Replaced Request 'host, port, protocol, path' with 'uri'
Max Shytikov [Tue, 1 Apr 2014 20:59:33 +0000 (22:59 +0200)]
Added integration test for match on 'url'
Max Shytikov [Tue, 1 Apr 2014 20:44:03 +0000 (22:44 +0200)]
Added integration test for match on 'method'
Max Shytikov [Mon, 31 Mar 2014 22:21:01 +0000 (00:21 +0200)]
Added unit test for matcher 'url'
Max Shytikov [Mon, 31 Mar 2014 22:11:55 +0000 (00:11 +0200)]
Added unit test for matcher 'method'
Max Shytikov [Mon, 31 Mar 2014 22:09:24 +0000 (00:09 +0200)]
Removed 'serializer' from name of test functions
Because the name '_serializer_' has no relationships with this tests
Kevin McCarthy [Sun, 27 Apr 2014 22:05:19 +0000 (12:05 -1000)]
Add waffle badge
Kevin McCarthy [Wed, 23 Apr 2014 07:35:16 +0000 (21:35 -1000)]
Filter Sensitive Data From Requests
Add the ability to filter out sensitive data, using one of three
methods: from headers, from a query string, and by using a custom
callback to modify the request.
Closes #67
Kevin McCarthy [Sun, 27 Apr 2014 21:29:06 +0000 (11:29 -1000)]
Add Logging
This helps to figure out which matcher has decided your two cassettes
differ, and figure out when your cassettes have hit the network.
Closes #34
Kevin McCarthy [Sun, 27 Apr 2014 08:28:38 +0000 (22:28 -1000)]
clean up readme whitespace
Kevin McCarthy [Sun, 27 Apr 2014 07:30:43 +0000 (21:30 -1000)]
pep8
Kevin McCarthy [Sun, 27 Apr 2014 04:49:01 +0000 (18:49 -1000)]
remove failing test since I'm not going to fix this use case
Kevin McCarthy [Sun, 27 Apr 2014 00:31:40 +0000 (14:31 -1000)]
Add Exception when JSON Serializing Binary Data
Since I can't think of a good way to deal with this, let's just give a
nice error message to point people in the right direction.
Closes #51
Kevin McCarthy [Thu, 24 Apr 2014 07:03:11 +0000 (21:03 -1000)]
fix tox envlist
Kevin McCarthy [Thu, 24 Apr 2014 07:24:12 +0000 (21:24 -1000)]
pep8
Kevin McCarthy [Thu, 24 Apr 2014 05:36:31 +0000 (19:36 -1000)]
let's keep testing python3.3, at least for the time being.
Kevin McCarthy [Thu, 24 Apr 2014 05:30:43 +0000 (19:30 -1000)]
improve socket mocking to hopefully pass both new python3.4 socket connection stuff and requests tests
Kevin McCarthy [Thu, 24 Apr 2014 04:58:17 +0000 (18:58 -1000)]
bump supported python3 version to 3.4
Kevin McCarthy [Sat, 12 Apr 2014 07:43:36 +0000 (21:43 -1000)]
Merge pull request #75 from simon-weber/patch-1
fix cassette url field capitalization
Simon Weber [Fri, 11 Apr 2014 20:43:41 +0000 (16:43 -0400)]
fix cassette url field capitalization
Kevin McCarthy [Sun, 6 Apr 2014 05:40:22 +0000 (19:40 -1000)]
Merge pull request #72 from marusich/master
Add full support for Boto
Chris Marusich [Thu, 3 Apr 2014 18:04:24 +0000 (11:04 -0700)]
Add full support for Boto
Before this change, vcrpy would not work with modules of Boto (e.g., boto.iam)
that use Boto's CertValidatingHTTPSConnection to connect to AWS (unless you
went through the extra effort of disabling certificate validation during the
tests). This change adds support for those modules.
Chris Marusich [Thu, 3 Apr 2014 19:08:41 +0000 (12:08 -0700)]
Add a failing test to illustrate a hole in vcrpy's Boto support
This test will fail with the following error:
TypeError: unbound method __init__() must be called with VCRHTTPConnection
instance as first argument (got CertValidatingHTTPSConnection instance instead)
The TypeError is raised because the __init__ method of Boto's
CertValidatingHTTPSConnection (which extends httplib.HTTPConnection) calls
httplib.HTTPConnection.__init__, and during the test httplib.HTTPConnection
actually refers to the patched verison (i.e., VCRHTTPConnection). When
VCRHTTPConnection.__init__ is called, it expects to receive a
VCRHTTPConnection object as its first argument, but instead it receives a
CertValidatingHTTPSConnection object. Because the only ancestor class of
CertValidatingHTTPSConnection is the original, un-patched
httplib.HTTPConnection, the first argument is not considered to be a
VCRHTTPConnection object, so a TypeError is raised.
Kevin McCarthy [Sat, 29 Mar 2014 22:07:21 +0000 (12:07 -1000)]
beef up the new epsisodes test a bit
Kevin McCarthy [Sat, 29 Mar 2014 22:03:38 +0000 (12:03 -1000)]
Revert "Merge pull request #68 from smallcode/patch-1"
Never mind, I do seem to have support for this. I'm not sure
why @smallcode was having issues with it, but I'm going to
beef up the test for it a bit to try to figure out what's broken.
This reverts commit
c83134ca39569890e3e0233ce97c47ac40ba754d , reversing
changes made to
b7cbd181f461e9e6a0d83c844e50083218dcfe9f .
Kevin McCarthy [Sat, 22 Mar 2014 05:35:20 +0000 (19:35 -1000)]
Merge pull request #68 from smallcode/patch-1
new_episodes record mode has been unable to use
smallcode [Wed, 19 Mar 2014 15:10:24 +0000 (23:10 +0800)]
new_episodes has been unable to use
I just found that it has been unable to use, is it?
Kevin McCarthy [Mon, 10 Mar 2014 01:29:59 +0000 (15:29 -1000)]
bump version to v0.7.0
Kevin McCarthy [Mon, 10 Mar 2014 01:22:02 +0000 (15:22 -1000)]
Update README.md
Kevin McCarthy [Sun, 9 Mar 2014 09:01:49 +0000 (23:01 -1000)]
use six.moves instead of _compat
Kevin McCarthy [Sun, 9 Mar 2014 08:59:10 +0000 (22:59 -1000)]
pep8 cleanup
Kevin McCarthy [Sun, 9 Mar 2014 08:14:35 +0000 (22:14 -1000)]
add AWS keys to travis
Kevin McCarthy [Sun, 9 Mar 2014 07:39:11 +0000 (21:39 -1000)]
need the sock for httplib2, don't want sock for requests, can't we all just get along?
Kevin McCarthy [Sun, 9 Mar 2014 07:27:09 +0000 (21:27 -1000)]
expose sock, pass correct args to connect in stubs. should fix httplib2 in python3
Kevin McCarthy [Sun, 9 Mar 2014 07:11:50 +0000 (21:11 -1000)]
fix self.closed in python3, and request must inherit from httprequest for httplib2
Kevin McCarthy [Sun, 9 Mar 2014 06:58:41 +0000 (20:58 -1000)]
add more tox envs
Kevin McCarthy [Sun, 9 Mar 2014 06:21:20 +0000 (20:21 -1000)]
let's add boto as a supported client, and maybe we dont need the empty travis env anymore
Kevin McCarthy [Sun, 9 Mar 2014 06:21:04 +0000 (20:21 -1000)]
urlencode moved in py3
Kevin McCarthy [Sun, 9 Mar 2014 06:16:45 +0000 (20:16 -1000)]
Don't try to inherit from the real response object
Åsmund Grammeltvedt [Sun, 2 Feb 2014 20:53:12 +0000 (21:53 +0100)]
Add Python 2.3 support
This commit also adds the 'six' dependency
Kevin McCarthy [Sun, 9 Feb 2014 20:11:54 +0000 (10:11 -1000)]
Cut down on the number of environments in Travis
Kevin McCarthy [Sun, 9 Feb 2014 19:47:09 +0000 (09:47 -1000)]
Add httplib2 tests to travis
Kevin McCarthy [Sun, 9 Feb 2014 19:40:24 +0000 (09:40 -1000)]
restore tox envs
Roberto Abdelkader Martínez Pérez [Tue, 4 Feb 2014 12:22:36 +0000 (13:22 +0100)]
httplib2 support
Kevin McCarthy [Sun, 9 Mar 2014 05:24:11 +0000 (19:24 -1000)]
add tests for boto
Kevin McCarthy [Sun, 9 Mar 2014 05:22:58 +0000 (19:22 -1000)]
Major Refactor of Stubs
So the stubs were getting out of hand, and while trying to add support for the
putrequest and putheader methods, I had an idea for a cleaner way to handle
the stubs using the VCRHTTPConnection more as a proxy object. So
VCRHTTPConnection and VCRHTTPSConnection no longer inherit from HTTPConnection
and HTTPSConnection. This allowed me to get rid of quite a bit of
copy-and-pasted stdlib code.
Kevin McCarthy [Sun, 9 Mar 2014 05:18:14 +0000 (19:18 -1000)]
Merge pull request #65 from msabramo/patch-1
README.md: minor formatting, add links
Marc Abramowitz [Mon, 3 Mar 2014 14:26:57 +0000 (06:26 -0800)]
README.md: minor formatting, add links
Kevin McCarthy [Sun, 9 Feb 2014 18:48:34 +0000 (08:48 -1000)]
Add note to README about tox usage
Kevin McCarthy [Sun, 9 Feb 2014 18:49:22 +0000 (08:49 -1000)]
Merge pull request #61 from msabramo/tox_posargs
tox.ini: Add {posargs} for passing args to py.test
Kevin McCarthy [Tue, 4 Feb 2014 18:49:28 +0000 (10:49 -0800)]
Merge pull request #63 from msabramo/issue_59_save_requests_HTTPSConnection
patch: Save requests...HTTPSConnection
Marc Abramowitz [Tue, 4 Feb 2014 18:30:29 +0000 (10:30 -0800)]
patch: Save requests...HTTPSConnection
so that we unpatch back to the correct class in reset().
Closes #59
Marc Abramowitz [Tue, 4 Feb 2014 08:25:13 +0000 (00:25 -0800)]
tox.ini: Add {posargs} for passing args to py.test
This allows you to do stuff like:
tox -e py26requests,py27requests,pypyrequests -- tests/integration/test_requests.py
Kevin McCarthy [Sat, 11 Jan 2014 19:34:40 +0000 (09:34 -1000)]
Update README.md
Kevin McCarthy [Sat, 11 Jan 2014 19:26:34 +0000 (09:26 -1000)]
Load Old Cassettes
Add backwards-compatible cassette loading code that can load
the old style header dicts from response cassettes.
Kevin McCarthy [Fri, 20 Dec 2013 05:38:35 +0000 (19:38 -1000)]
PEP8 Fixes
Kevin McCarthy [Fri, 20 Dec 2013 05:34:06 +0000 (19:34 -1000)]
Let's have the new exceptions subclass basic exception types
Marc Abramowitz [Thu, 19 Dec 2013 21:55:19 +0000 (13:55 -0800)]
Nicer error for can't overwrite existing cassette
Raise CannotOverwriteExistingCassetteException rather than Exception.
Include cassette filename and record mode in error message.
Marc Abramowitz [Thu, 19 Dec 2013 23:41:04 +0000 (15:41 -0800)]
Nicer error when cassette doesn't contain request
Raise UnhandledHTTPRequestError.
Show name of cassette and request.
Kevin McCarthy [Sun, 8 Dec 2013 01:50:30 +0000 (15:50 -1000)]
Store Headers as a List
This is a backwards-incompatible change that will store headers
as a list rather than a dictionary. The reason being that you can
have multiple values for a single header, and concatenating them
together with commas can create an unparseable string (sometimes
the header values can have commas in them)
Kevin McCarthy [Mon, 16 Dec 2013 02:43:11 +0000 (16:43 -1000)]
Add Decorator Support
Kevin McCarthy [Mon, 16 Dec 2013 02:19:12 +0000 (16:19 -1000)]
Removing Pypy tests until travis installs version 2.2.1
Kevin McCarthy [Mon, 2 Dec 2013 00:41:18 +0000 (14:41 -1000)]
Version bump to 0.5.0
Kevin McCarthy [Mon, 2 Dec 2013 00:38:46 +0000 (14:38 -1000)]
formatting fixes
Kevin McCarthy [Mon, 2 Dec 2013 00:26:35 +0000 (14:26 -1000)]
Fix API by adding 'responses_of' method
`responses_of` replaces `response_of`, since each request can have
several matching responses now.
This breaks backwards compatibility if you are using the
response_of method, so a version bump will be required.
Kevin McCarthy [Sun, 1 Dec 2013 23:46:44 +0000 (13:46 -1000)]
Fix Cryptic 'write-protected' Message
Closes #46
Marc Abramowitz [Tue, 26 Nov 2013 20:12:39 +0000 (12:12 -0800)]
del self.sock in VCRConnectionMixin.request
instead of in connection class constructors.
Fixes GH-48.
Marc Abramowitz [Tue, 26 Nov 2013 20:07:13 +0000 (12:07 -0800)]
Add test: test_session_and_connection_close
This is a test for issue GH-48.
Kevin McCarthy [Sun, 10 Nov 2013 22:31:11 +0000 (12:31 -1000)]
Version Bump to 0.4.0
Kevin McCarthy [Sun, 10 Nov 2013 22:25:59 +0000 (12:25 -1000)]
Remove Secure File Overwrite Support
Closes #42
Kevin McCarthy [Sat, 9 Nov 2013 22:49:33 +0000 (12:49 -1000)]
Record Multiple Matching Requests
This change allows us to record multiple matching requests to
the same URL, and then play them back sequentially.
Closes #40, #41
Veros Kaplan [Wed, 6 Nov 2013 12:33:31 +0000 (13:33 +0100)]
Added test: accessing same recource three times in once mode
Veros Kaplan [Wed, 6 Nov 2013 12:26:46 +0000 (13:26 +0100)]
Added test: accessing two times same page
Kevin McCarthy [Sun, 10 Nov 2013 03:40:36 +0000 (17:40 -1000)]
Remove Some stray \t characters
I guess that's what I get for playing around with my vimrc.
Thanks to @bryanhelmig for pointing these out.
Kevin McCarthy [Sun, 10 Nov 2013 03:33:33 +0000 (17:33 -1000)]
Fix Requests so it can gunzip the request body
I wasn't emulating the stateful file-object in my response stub,
so urllib3 wasn't decompressing gzipped bodies properly. This
should fix that problem.
Thanks @bryanhelmig for the motivation to dig into this.
Kevin McCarthy [Fri, 25 Oct 2013 07:56:04 +0000 (21:56 -1000)]
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.
Kevin McCarthy [Fri, 25 Oct 2013 05:56:36 +0000 (19:56 -1000)]
bump for version 0.3.4
smallcode [Tue, 22 Oct 2013 09:41:56 +0000 (17:41 +0800)]
Update filesystem.py
fix WindowsError: [Error 32].
because must close the file before rename the file in window system.
Kevin McCarthy [Mon, 30 Sep 2013 01:56:13 +0000 (15:56 -1000)]
Fix issue #36 - error message for unregistered matcher was broken
Kevin McCarthy [Sun, 22 Sep 2013 02:41:07 +0000 (16:41 -1000)]
Bump version for bugfix release
Hector Dearman [Sat, 21 Sep 2013 20:47:27 +0000 (21:47 +0100)]
allow match_on to be passed as an argument VCR
Kevin McCarthy [Tue, 17 Sep 2013 23:18:26 +0000 (13:18 -1000)]
Only use the relative path in HTTP requests
This causes a pretty big problem on out-of-spec HTTP servers (like
Flickr). Closes #31