Kevin McCarthy
4302d7753e
clean up readme whitespace
2014-04-26 22:28:38 -10:00
Kevin McCarthy
58ac00a7f6
pep8
2014-04-26 21:30:43 -10:00
Kevin McCarthy
ab27c71a81
remove failing test since I'm not going to fix this use case
2014-04-26 18:49:40 -10:00
Kevin McCarthy
6273c32334
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
2014-04-26 14:31:40 -10:00
Kevin McCarthy
2a072e4dd3
fix tox envlist
2014-04-25 18:55:43 -10:00
Kevin McCarthy
582b8eab51
pep8
2014-04-23 21:24:12 -10:00
Kevin McCarthy
e002aab999
let's keep testing python3.3, at least for the time being.
2014-04-23 19:36:31 -10:00
Kevin McCarthy
bc5199c893
improve socket mocking to hopefully pass both new python3.4 socket connection stuff and requests tests
2014-04-23 19:30:43 -10:00
Kevin McCarthy
bd2d2cea72
bump supported python3 version to 3.4
2014-04-23 18:58:17 -10:00
Kevin McCarthy
59f3216d44
Merge pull request #75 from simon-weber/patch-1
...
fix cassette url field capitalization
2014-04-11 21:43:36 -10:00
Simon Weber
23d1717216
fix cassette url field capitalization
2014-04-11 16:43:41 -04:00
Kevin McCarthy
1452455d0b
Merge pull request #72 from marusich/master
...
Add full support for Boto
2014-04-05 19:40:22 -10:00
Chris Marusich
955e532162
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.
2014-04-03 13:52:30 -07:00
Chris Marusich
20ff2e9d9a
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.
2014-04-03 13:21:33 -07:00
Kevin McCarthy
544d2127d3
beef up the new epsisodes test a bit
2014-03-29 12:07:21 -10:00
Kevin McCarthy
01901b7a4e
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 c83134ca39 , reversing
changes made to b7cbd181f4 .
2014-03-29 12:03:38 -10:00
Kevin McCarthy
c83134ca39
Merge pull request #68 from smallcode/patch-1
...
new_episodes record mode has been unable to use
2014-03-21 19:35:20 -10:00
smallcode
ebb180f7a5
new_episodes has been unable to use
...
I just found that it has been unable to use, is it?
2014-03-19 23:10:24 +08:00
Kevin McCarthy
b7cbd181f4
bump version to v0.7.0
v0.7.0
2014-03-09 15:30:41 -10:00
Kevin McCarthy
4a4b04e5a6
Update README.md
2014-03-09 15:22:02 -10:00
Kevin McCarthy
6d0a8d8ed9
use six.moves instead of _compat
2014-03-08 23:14:16 -10:00
Kevin McCarthy
985e573303
pep8 cleanup
2014-03-08 22:59:10 -10:00
Kevin McCarthy
73666bcb49
add AWS keys to travis
2014-03-08 22:49:01 -10:00
Kevin McCarthy
f5db99f079
need the sock for httplib2, don't want sock for requests, can't we all just get along?
2014-03-08 21:56:25 -10:00
Kevin McCarthy
dedca0f6e7
expose sock, pass correct args to connect in stubs. should fix httplib2 in python3
2014-03-08 21:27:09 -10:00
Kevin McCarthy
0d77d2dcc6
fix self.closed in python3, and request must inherit from httprequest for httplib2
2014-03-08 21:11:50 -10:00
Kevin McCarthy
56a9a53522
add more tox envs
2014-03-08 20:58:41 -10:00
Kevin McCarthy
34e7760d47
let's add boto as a supported client, and maybe we dont need the empty travis env anymore
2014-03-08 20:21:20 -10:00
Kevin McCarthy
32b99f0719
urlencode moved in py3
2014-03-08 20:21:04 -10:00
Kevin McCarthy
d187d910b9
Don't try to inherit from the real response object
2014-03-08 20:16:45 -10:00
Åsmund Grammeltvedt
a73da71159
Add Python 2.3 support
...
This commit also adds the 'six' dependency
2014-03-08 20:01:48 -10:00
Kevin McCarthy
2385176084
Cut down on the number of environments in Travis
2014-03-08 19:35:32 -10:00
Kevin McCarthy
14590ae3c7
Add httplib2 tests to travis
2014-03-08 19:35:32 -10:00
Kevin McCarthy
d16b20a780
restore tox envs
2014-03-08 19:35:31 -10:00
Roberto Abdelkader Martínez Pérez
46a2c25f6a
httplib2 support
2014-03-08 19:35:30 -10:00
Kevin McCarthy
6bb67567f9
add tests for boto
2014-03-08 19:24:11 -10:00
Kevin McCarthy
e84cd6f059
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.
2014-03-08 19:22:58 -10:00
Kevin McCarthy
c0b88c2201
Merge pull request #65 from msabramo/patch-1
...
README.md: minor formatting, add links
2014-03-08 19:18:14 -10:00
Marc Abramowitz
f003e3e4ab
README.md: minor formatting, add links
2014-03-03 06:26:57 -08:00
Kevin McCarthy
d0e6f9c047
Add note to README about tox usage
2014-02-09 08:49:58 -10:00
Kevin McCarthy
1298d6f5c7
Merge pull request #61 from msabramo/tox_posargs
...
tox.ini: Add {posargs} for passing args to py.test
2014-02-09 08:49:22 -10:00
Kevin McCarthy
df67dd1728
Merge pull request #63 from msabramo/issue_59_save_requests_HTTPSConnection
...
patch: Save requests...HTTPSConnection
2014-02-04 10:49:28 -08:00
Marc Abramowitz
559cd902e1
patch: Save requests...HTTPSConnection
...
so that we unpatch back to the correct class in reset().
Closes #59
2014-02-04 10:30:29 -08:00
Marc Abramowitz
c44fee1f16
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
2014-02-04 00:25:13 -08:00
Kevin McCarthy
8620bc3af1
Update README.md
v0.6.0
2014-01-11 09:34:40 -10:00
Kevin McCarthy
84bf7b6132
Load Old Cassettes
...
Add backwards-compatible cassette loading code that can load
the old style header dicts from response cassettes.
2014-01-11 09:28:45 -10:00
Kevin McCarthy
2cf779d776
PEP8 Fixes
2013-12-19 19:43:32 -10:00
Kevin McCarthy
d4494bae50
Let's have the new exceptions subclass basic exception types
2013-12-19 19:43:32 -10:00
Marc Abramowitz
41f5fce895
Nicer error for can't overwrite existing cassette
...
Raise CannotOverwriteExistingCassetteException rather than Exception.
Include cassette filename and record mode in error message.
2013-12-19 19:20:00 -10:00
Marc Abramowitz
a6806f2f99
Nicer error when cassette doesn't contain request
...
Raise UnhandledHTTPRequestError.
Show name of cassette and request.
2013-12-19 15:41:04 -08:00