Charly
e5d6327de9
added a fix to httplib2
2017-01-11 17:54:15 -10:00
Marc Nijdam
188326b10e
Fix flake errors
2016-11-07 12:03:21 -08:00
Marc Nijdam
ff90190660
Fix up to support aiohttp 1.x
2016-11-07 10:07:08 -08: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
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
Abhinav Gupta
d780bc04dd
Fix Tornado support behavior for Tornado 3.
...
Resolves #235 .
2015-12-19 18:18:20 -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
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
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
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
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
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
Abhinav Gupta
3846a4ccef
[Tornado] Fix unsupported features exception not being raised.
...
Add tests for that exception being raisd correctly and for
CannotOverwriteCassetteException.
2015-07-03 12:34:57 -07:00
Abhinav Gupta
7922fec9fe
Tornado support
2015-07-02 14:33:34 -07:00
Antoine Bertin
6cbc0fb279
Fix httplib endheaders if a message_body exists
...
Fixes #140
2015-06-09 00:59:43 -07:00
Kevin McCarthy
4ade547779
python3 uses capital headers sometimes, let's do a case-agnostic header removal
2015-05-05 21:59:48 -10:00
Kevin McCarthy
5b9b6cd8b5
dont try to load chunked responses from cassettes, we already unchunked everything
2015-05-05 21:32:32 -10:00
Ivan Malison
870ab276c4
Possible fix for #140 .
2015-03-25 13:01:55 -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
2473bdb77a
Fix default port for HTTPS.
2015-02-23 23:37:04 -08:00
Ivan Malison
e1f65bcbdc
Add force reset around calls to actual connection from stubs, to ensure
...
compatibility with version of httplib/urlib2 in python 2.7.9. Closes #130 .
2014-12-26 05:10:20 -05:00
Ivan Malison
9d52c3ed42
Remove warning message caused by lack of is_verified property on HTTPSConnection stub.
2014-11-13 16:32:38 -08:00
Rodrigo Taboada
a71c15f398
Create headers field in VCRHTTPResponse. Fixes #117 .
2014-10-24 16:37:12 -02:00
Ivan Malison
a9a68ba44b
Random tweaks.
2014-10-05 18:37:01 -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
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
958aac3af3
Use mock for patching http connection objects.
2014-09-18 05:32:55 -07:00
Matt Thomson
f719f90e63
Fix multiple header behaviour.
...
Join multiple header values together, rather than losing duplicates with a
dict.
2014-09-06 17:15:15 +01: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
Kevin McCarthy
cd715f37c6
Fix requests stub. Closes #94
2014-09-01 15:48:57 -10:00
Kevin McCarthy
9a1147196a
getheader() in stubs should be case-insensitive
2014-08-01 16:28:21 -10:00
Kevin McCarthy
70abc5058c
requests 2.3 compat
2014-05-17 12:58:31 -10:00
Kevin McCarthy
8d90dba16c
Ignore requests before trying to play them
...
Closes #79
2014-05-17 09:34:50 -10:00
Kevin McCarthy
8eb54c012f
pep8
2014-05-10 11:52:36 -10:00
Kevin McCarthy
1e8e7057f5
fix python3 compat
2014-05-10 11:52:35 -10:00