Max Shytikov
424c658da4
Fixed open tmp file in python3
2014-04-30 02:36:26 +02:00
Max Shytikov
f0972628ef
Fixed migration for one file
2014-04-30 02:36:26 +02:00
Max Shytikov
ee28768a31
Added migration script for old cassettes
2014-04-30 02:36:26 +02:00
Max Shytikov
5354ef781c
Formatted setup.py to make flake8 happy
2014-04-30 02:36:25 +02:00
Max Shytikov
750e141b9d
Added integration tests for matchers
2014-04-30 02:36:25 +02:00
Max Shytikov
a042cb3824
Updated README
2014-04-30 02:36:25 +02:00
Max Shytikov
96d8782d08
Added 'protocol' to Request for backwards compatibility
2014-04-30 02:31:11 +02:00
Max Shytikov
f9a64e1609
Fixed available matchers declaration
2014-04-30 02:31:11 +02:00
Max Shytikov
2fa1aaa1f7
Replaced 'url' mather with 'uri'.
2014-04-30 02:31:11 +02:00
Max Shytikov
7fe55ad8b8
Updated 'set' to be compatible with 2.6
2014-04-30 02:30:08 +02:00
Max Shytikov
2f6db0dc0c
Added scheme to default 'match_on'
2014-04-30 02:30:08 +02:00
Max Shytikov
4267828a3e
Added 'scheme' to Request with matcher and test
2014-04-30 02:29:25 +02:00
Max Shytikov
4e9d5f6885
Updated default 'match_on'
2014-04-30 02:29:25 +02:00
Max Shytikov
5015dbd878
Improved test samples
2014-04-30 02:27:52 +02:00
Max Shytikov
9b188e986f
Added query to Request with matcher and test
2014-04-30 02:27:52 +02:00
Max Shytikov
6b060e5666
Added path to Request with matcher and test
2014-04-30 02:27:52 +02:00
Max Shytikov
bd9fa773e8
Added port to Request with matcher and test
2014-04-30 02:27:52 +02:00
Max Shytikov
18ec57fa73
Added test and impl for Request 'host' attribute
2014-04-30 02:27:52 +02:00
Max Shytikov
6cca703eee
Refactored unit test for matchers
2014-04-30 02:27:52 +02:00
Max Shytikov
edf1df9188
Replaced Request 'host, port, protocol, path' with 'uri'
2014-04-30 02:27:52 +02:00
Max Shytikov
e0c6a8429d
Added integration test for match on 'url'
2014-04-30 02:27:51 +02:00
Max Shytikov
08d4d8913a
Added integration test for match on 'method'
2014-04-30 02:27:51 +02:00
Max Shytikov
792d665893
Added unit test for matcher 'url'
2014-04-30 02:27:51 +02:00
Max Shytikov
cd32f5114c
Added unit test for matcher 'method'
2014-04-30 02:27:51 +02:00
Max Shytikov
16c6135387
Removed 'serializer' from name of test functions
...
Because the name '_serializer_' has no relationships with this tests
2014-04-30 02:27:51 +02:00
Kevin McCarthy
5aa2fb017f
Add waffle badge
2014-04-27 12:05:19 -10:00
Kevin McCarthy
e6fdc735e4
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
2014-04-27 11:38:28 -10:00
Kevin McCarthy
f317800cb7
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
2014-04-27 11:29:06 -10:00
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