Stefan Tjarks
ffc4dca502
ClientResponse.release isn't a coroutine
...
Therefore it should not be one in the MockClientResponse class.
d0af887e31/aiohttp/client_reqrep.py (L832)
2018-09-26 00:30:11 -07:00
Luiz Menezes
b38915a89a
Fix httplib2 compatibility with py37
2018-09-18 18:42:22 -03:00
Luiz Menezes
cb4228cf90
Merge pull request #390 from kevin1024/fix-aiohttp-client
...
Fix vcr to support aiohttp client requests
2018-09-18 14:42:59 -03:00
Luiz Menezes
f7c051cde6
Drop support to asyncio.coroutine (py34 async/await syntax)
2018-09-18 14:14:25 -03:00
Stefan Tjarks
e559be758a
Fix aiohttp patch to work with aiohttp >= 3.3
...
Aiohttp expects an awaitable instance to be returned from
`ClientSession._request` though `asyncio.coroutine` decorated function
do not implement `__await__`. By changing the syntax and dropping Python
3.4 support we fix this issue.
2018-07-25 13:24:29 -03:00
Samuel Fekete
eb4774a7d2
Only have a sock attribute after connecting
2018-07-13 16:40:35 +01:00
Samuel Fekete
365a98bf66
Fix failing tests
2018-07-13 16:40:35 +01:00
Samuel Fekete
fc95e34bd4
Determine proxy based on path
2018-07-13 16:40:35 +01:00
Samuel Fekete
43f4eb8156
Fix host and port for proxy connections
2018-07-13 16:34:21 +01:00
Luiz Menezes
306238d561
Test aiohttp usage with query strings on the URL
2018-07-08 23:06:22 -03:00
Goran Stefkovski
0d4c9eccf5
simplified logic so that either params or url is used, if params are specified - they will overwrite any get params on the url
2018-07-08 23:03:42 -03:00
Luiz Menezes
75cb067e29
Fix content type being passed to aiohttp response stub
2018-07-07 23:56:39 -03:00
Luiz Menezes
9e8bd382d3
Fix aiohttp stub to work with aiohttp 3.3.x
2018-06-05 11:59:28 -03:00
Luiz Menezes
26be756f47
Fix aiohttp stub to support version >= 3.1.0
2018-05-07 09:25:21 -03:00
Allisson Azevedo
ad153bd733
Merge remote-tracking branch 'upstream/master'
2018-02-17 11:51:04 -03:00
Hugo
d0aa6bcc8d
Rewrite unnecessary list/tuple literals as set literals
2018-01-15 09:54:11 +02:00
Hugo
6156271c48
Automatic formatters supported in Python 2.7+
2018-01-15 09:54:11 +02:00
Allisson Azevedo
c55d976277
Update aiohttp_stub to work with binary content
2017-06-22 15:12:58 -03:00
Kevin McCarthy
88bf8f0aac
proxy getattr to the real connection too
2017-05-27 15:40:42 -10:00
Kevin McCarthy
9b59e02374
Fix compat with requests 2.16 (unvendored urllib3)
...
The new version of requests un-vendors urllib3, with a nifty hack:
https://github.com/kennethreitz/requests/blob/master/requests/packages.py
Unfortunately messing directly with sys.modules causes some weird
behavior that I don't entirely understand. Avoiding the extra import to
requests.packages as part of VCR's initialization seems to sidestep the
issue.
Closes #311
2017-05-27 15:40:38 -10:00
Thomas Grainger
73dbc6f8cb
add missing _get_content_length static method
...
also add _is_textIO
2017-04-04 10:32:17 +01:00
Derek Bekoe
97473bb8d8
Correctly patch HTTPConnection.request in Python 3.6
...
Fixes https://github.com/kevin1024/vcrpy/issues/293
2017-01-23 14:54:26 -08:00
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