Kevin McCarthy
2454aa2eb0
Merge pull request #278 from kevin1024/empty_response_body
...
Empty response body
2016-10-02 12:10:04 -10:00
Kevin McCarthy
df5f6089af
Merge pull request #279 from kevin1024/fix_nonetype_encode_exception
...
Fix nonetype encode exception
2016-10-02 12:09:55 -10:00
Gregory Roussac
9c275dd86a
VCR AttributeError: 'NoneType' object has no attribute 'encode'
...
Hi,
Using an old fork but may be usefull.
I think checking the string is required like on line 47.
Best regards
2016-10-02 12:07:37 -10:00
Janez Troha
31b0e825b5
Handle empty body
2016-10-02 10:24:38 -10:00
Alexander Novikov
c8db6cb731
Fix missing query string while params are passed in inside params argument
2016-10-02 10:22:29 -10:00
Patrick Uiterwijk
9c432c7e50
Move vcr.stubs.aiohttp_stub to a package
...
find_packages(exclude=) only works with packages, not modules.
So this fixes install_lib for python2 by correctly excluding that module.
Fixes : #270
Fixes : #271
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2016-09-09 20:45:16 +00:00
Luiz Menezes
c65ff0e7b3
fix flake8: ignore yield from syntax errors
2016-08-11 19:48:40 -03:00
Luiz Menezes
574b22a62a
remove async/await from aiohttp_stubs to support python 3.4
2016-08-10 15:51:11 -03:00
Luiz Menezes
f71d28d10e
fix aiohttp_stubs.vcr_request error message
2016-08-04 13:39:46 -03:00
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