Luiz Menezes
3355bd01eb
fix aiohttp response closing
2016-08-04 13:39:09 -03:00
Luiz Menezes
17afa82bf4
remove CIMultiDictProxy from aiohttp_stubs.vcr_request
2016-08-04 13:37:55 -03:00
Luiz Menezes
f98684e8aa
add support for aiohttp
2016-08-04 00:21:49 -03:00
bogdan barna
24df79b75f
boto3 integration tests
2016-06-27 01:39:49 +02:00
David de Sousa
0800b99214
Adding support for boto3
2016-06-27 01:39:49 +02:00
Nick DiRienzo
c3298c25a3
Updated comments
2016-06-20 23:43:47 -07:00
Nick DiRienzo
2f4c803678
Added a note on the deepcopy
2016-06-20 23:36:51 -07:00
Nick DiRienzo
b5c27f99d1
Move deepcopy higher to not mutate original headers
2016-06-20 16:57:40 -07:00
Kevin McCarthy
37c8cbca91
pep8
2016-05-01 14:44:13 -10:00
Aliaksandr Buhayeu
9daf301deb
Fix for Serialization errors with JSON adapter
...
This patch aims to fix the issue#222,
where json data in request can not be serialized
because of TypeError in py3
2016-05-01 14:22:17 -10:00
Kevin McCarthy
4e36997e1a
Use pytest-httpbin
...
This will help the test flakiness and speed up test runs.
2016-05-01 13:50:04 -10:00
Jayson Reis
7cc513e1d2
Avoid concatenating bytes with strings
2016-01-19 14:19:03 +01:00
Ivan Malison
99d4150df8
allow filtering by response
2016-01-11 16:07:44 -08:00
Ivan 'Goat' Malison
3459d95d4f
Merge pull request #234 from tobiowo/decode-compressed-response
...
Decode compressed response option
2015-12-31 10:18:34 -08:00
Abhinav Gupta
d780bc04dd
Fix Tornado support behavior for Tornado 3.
...
Resolves #235 .
2015-12-19 18:18:20 -08:00
Olutobi Owoputi
5d866dd77c
support python 3.4
2015-12-02 14:43:06 -08:00
Olutobi Owoputi
64397d7ecc
add decode_compressed_response option and filter
2015-12-02 12:25:36 -08:00
John Vandenberg
dc9cd4229b
Fix pyflakes and pep8 errors
...
Use extra asserts to use previously unused variables in tests,
such as `cass` and `response`.
Fix only pyflakes errors in docs/conf.py
2015-11-26 08:25:06 +11:00
Aron Griffis
312ed2c234
Merge pull request #223 from jayvdb/jessie-fix
...
Fallback to importing from urllib3
2015-11-24 15:14:09 -05:00
Aron Griffis
77de8dc47e
Update VCR params to use new filters.
2015-11-07 17:05:25 -05:00
Aron Griffis
cb40a45eba
Add replace_post_data_parameters()
2015-11-07 17:05:25 -05:00
Aron Griffis
678586904b
Add replace_query_parameters()
2015-11-07 17:05:25 -05:00
Aron Griffis
ddbf0464f4
Add replace_headers()
2015-11-07 17:05:25 -05:00
Ivan Malison
f6b8e4f8e7
Lint cleanup
2015-10-25 20:30:33 -07:00
John Vandenberg
dd8b39b29e
Fallback to importing from urllib3
...
requests.packages.urllib3 may be literally urllib3
instead of vendored urllib3.
2015-10-15 14:56:30 +11:00
Bocai Cen
7990c549d1
fix decoration when in _handle_function does not return the wrapped function return value
2015-10-01 23:17:15 -04:00
Tye Wang
ac510097e0
Add TODO and elaborate on comment
2015-09-18 12:19:17 -04:00
Tye Wang
79ff59feae
Attributes set on VCRConnection now also get set on the real_connection
2015-09-03 14:35:28 -04:00
Ivan 'Goat' Malison
34252bc234
Merge pull request #192 from agriffis/insensitive-headers
...
Make request.headers always a CaseInsensitiveDict.
2015-08-28 14:47:45 -07:00
Aron Griffis
3f006cc261
Merge pull request #201 from agriffis/path-transformer-default
...
Default path_transformer=None. Fixes #199
2015-08-28 07:55:13 -04:00
Aron Griffis
0eda8ba482
Default path_transformer=None. Fixes #199
2015-08-28 07:25:03 -04:00
Ivan Malison
c8180326ad
Automatically decorate dynamically added methods with auto_decorate
2015-08-28 02:17:01 -07:00
Ivan Malison
6fd04f3675
Add test_case method to VCR
...
this method provides a class that can be inherited from to decorate all
test methods on the desired class with use_cassette using the relevant vcr
2015-08-28 01:44:39 -07:00
Aron Griffis
7312229aef
Add HeadersDict, and mark add_header deprecated.
...
HeadersDict is a subclass of CaseInsensitiveDict with two new features:
1. Preserve the case of the header key from the first time it was set.
This means that later munging won't modify the key case. (You can
force picking up the new case with `del` followed by setting.)
2. If the value is a list or tuple, unpack it and store the first
element. This is the same as how `Request.add_header()` used to work.
For backward compatibility this commit preserves `Request.add_header()` but
marks it deprecated.
2015-08-25 06:30:50 -04:00
Aron Griffis
646d12df94
More compact expression with dict.get()
2015-08-24 16:19:34 -04:00
Aron Griffis
eda64bc3be
Make request.headers always a CaseInsensitiveDict.
...
Previously request.headers was a normal dict (albeit with the
request.add_header interface) which meant that some code paths would do
case-sensitive matching, for example remove_post_data_parameters which
tests for 'Content-Type'. This change allows all code paths to get the same
case-insensitive treatment.
Additionally request.headers becomes a property to enforce upgrading it to
a CaseInsensitiveDict even if assigned.
2015-08-24 16:19:34 -04:00
Ivan Malison
efe6744eda
v1.7.3
2015-08-23 18:10:01 -07:00
Aron Griffis
3305f0ca7d
Repair a docstring
2015-08-23 16:33:25 -04:00
Aron Griffis
7f02d65dd9
Make hosts_to_ignore a set() earlier for clarity.
2015-08-23 16:00:52 -04:00
Aron Griffis
3e5553c56a
Don't drop passed-in before_record_response
...
This is an actual bugfix. If before_record_response is passed into VCR as
an iterable then it won't be included in filter_functions. This commit
repairs the logic to separate the tests (just as it's already done for
before_record_request).
Also use .extend() rather than looping on .append()
2015-08-23 16:00:52 -04:00
Aron Griffis
a569dd4dc8
Raise KeyError with message instead of print, just like in get_matchers below
2015-08-23 12:37:01 -04:00
Aron Griffis
eb1cdad03a
self._before_record_response can never be falsy in Cassette (just like self._before_record_request above it)
2015-08-23 12:37:01 -04:00
Aron Griffis
08bb3bd187
Remove an extra space
2015-08-23 12:37:01 -04:00
Ivan Malison
be3bf39161
Style changes in vcr/config.py
2015-08-22 18:48:04 -07:00
Ivan Malison
29d37e410a
Add additional_matchers to use_cassette
...
Closes #188 .
2015-08-22 18:06:13 -07:00
Ivan Malison
8b7e6c0ab8
v1.7.2
2015-08-18 17:00:45 -07:00
Ivan Malison
bd7c6ed03f
Update comment about reentrance on cassette.py
2015-08-18 16:17:41 -07:00
Abhinav Gupta
1e1c093b3c
Set request_time on Tornadoo HTTPResponses
2015-08-18 15:53:35 -07:00
Maarten van Schaik
7d68f0577a
Capture effective URL in tornado
2015-08-14 12:08:57 +02:00
Abhinav Gupta
c4a33d1cff
For Tornado AsyncHTTPClient, replace the methods instead of the class.
...
This makes it so patching works even if the user has a reference to, or an
instance of the original unpatched AsyncHTTPClient class.
Fixes #183 .
2015-08-12 10:51:08 -07:00