Kevin McCarthy
856c38479a
add failing test for requests2.7/gzip issue
2015-05-05 20:49:12 -10:00
Edward Stone
0def349420
Add ability to filter post data parameters
2015-03-31 13:12:13 -07:00
Ivan Malison
b948ed4857
Fix python3 support for requests file uploads.
2015-03-24 15:41:14 -07:00
Ivan Malison
4b4be7f661
Don't use 2.7+ style ',' separated with.
2015-03-24 14:11:16 -07:00
Ivan Malison
6602a449b1
Add support for posting files through requests. closes #121 . Possibly #134 .
2015-03-24 14:11:16 -07:00
Ivan Malison
39c3b15e02
unused imports.
2015-03-23 17:56:46 -07:00
Ivan Malison
5ab77e22db
Use suggested emacs style coding statements (see https://www.python.org/dev/peps/pep-0263/ ).
2015-03-23 17:55:49 -07:00
aisch
8930c97ff7
rm unused imports
2015-03-23 13:56:48 -07:00
aisch
e6b43a0374
rename urllib3 patch method and rm unused imports from tests
2015-03-23 13:43:30 -07:00
aisch
63ec95be06
update urllib3 patch/stub to be same as used for requests and add tests
2015-03-23 12:12:49 -07:00
Abhinav Gupta
87a25e9ab0
Fix httplib2 integration test.
2015-02-24 00:10:08 -08:00
Ivan Malison
7306205b8a
Improve test_new_episodes_record_mode_two_times test.
2014-11-21 17:15:15 -08:00
Nithin Reddy
2a128893cc
Adds a test to ensure that the cassette created with "new_episodes" has different expected behavior when opened with "once".
2014-11-21 09:47:28 -08:00
Nithin Reddy
5162d183e5
Fixes #123 . When attempting to replay the same request twice using record_mode="new_episodes", vcr.py raises UnhandledHTTPRequestError.
2014-11-20 19:07:21 -08:00
Shawn Krisman
b047336690
test_boto_stubs passes again.
2014-10-30 16:08:17 -07:00
Ivan Malison
99692a92d2
Handle unicode error in json serialize properly.
2014-10-07 13:21:47 -07:00
Ivan Malison
0871c3b87c
Remove instance variables for filter_headers, filter_query_params, ignore_localhost and ignore_hosts. These still exist on the VCR object, but they are automatically translated into a filter function when passed to the cassette.
2014-09-22 17:57:22 -07:00
Ivan Malison
a2c947dc48
Fix last bit of of #109 .
2014-09-21 05:06:28 -07:00
Ivan Malison
121ed79172
Mark bad test xfail.
2014-09-19 17:10:19 -07:00
Ivan Malison
b6e96020c1
Use {[testenv]deps}, instead of repeating testing requirements. Write another failing test for #109
2014-09-19 14:31:49 -07:00
Ivan Malison
8947f0fc5c
Add failing test for session still being attached to cassette after context is gone.
2014-09-18 17:03:13 -07:00
Ivan Malison
58fcb2b453
Add test that fails because of the fact that a new class is used for each cassette context instead of replacing the cassette on the existing mock connection.
2014-09-18 16:17:48 -07:00
Matt Thomson
3c410b5f9d
Don't write header values multiple times.
...
On Python 3, response.msg.keys() contains the same value multiple times if
there are multiple headers with the same value. Work around this by
converting to a set before iterating over it.
2014-09-06 16:57:12 +01:00
Matt Thomson
7a5795a547
Add test to demonstrate Python 3 multiple headers bug.
2014-09-06 16:32:29 +01:00
Kevin McCarthy
9a1147196a
getheader() in stubs should be case-insensitive
2014-08-01 16:28:21 -10:00
Kevin McCarthy
8d90dba16c
Ignore requests before trying to play them
...
Closes #79
2014-05-17 09:34:50 -10:00
Kevin McCarthy
3b05d499c3
Merge pull request #78 from mshytikov/feature/cassette-all-played
...
Feature/Cassette#all_played
2014-05-10 11:58:28 -10:00
Kevin McCarthy
b671e7ab99
headers dont retain order anymore.... sigh
2014-05-10 11:52:35 -10:00
Kevin McCarthy
c0691a96e6
flickr test was actually using yaml cassettes
2014-05-10 11:52:35 -10:00
Kevin McCarthy
b43c63f284
update serializers
2014-05-10 11:52:35 -10:00
Kevin McCarthy
e50f917cf4
Make Serializers Dumber
...
Let's have the serializer just worry about serializing the dict
that we hand it, and move the unicode stuff up to a serialize module.
This should hopefully let us move toward using a version string in
cassettes.
2014-05-10 11:52:35 -10:00
Max Shytikov
f9f2b98427
Added tests for Cassette#all_played
2014-05-06 00:46:03 +02:00
Kevin McCarthy
0be7d6f238
oops, forgot to commit new tests for ignore feature
2014-05-03 15:52:45 -10:00
Max Shytikov
0b1aeac25e
Renamed outdated url to uri.
2014-05-04 02:11:49 +02:00
Max Shytikov
1190a0e62e
Removed default '80' port of uri in tests
2014-05-04 02:11:49 +02:00
Max Shytikov
3d2da26933
Updated test to use new headers structure
2014-05-02 07:32:18 +02:00
Max Shytikov
750e141b9d
Added integration tests for matchers
2014-04-30 02:36:25 +02:00
Max Shytikov
2fa1aaa1f7
Replaced 'url' mather with 'uri'.
2014-04-30 02:31:11 +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
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
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
ab27c71a81
remove failing test since I'm not going to fix this use case
2014-04-26 18:49:40 -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
6d0a8d8ed9
use six.moves instead of _compat
2014-03-08 23:14:16 -10:00
Kevin McCarthy
32b99f0719
urlencode moved in py3
2014-03-08 20:21:04 -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