Luiz Menezes
1b474c0510
Fix deprecation warnings
2019-04-06 00:37:36 -03:00
Thomas Grainger
4ef5205094
support ClientResponse.text(errors=) kwarg
2018-10-15 03:00:19 +01:00
Luiz Menezes
b38915a89a
Fix httplib2 compatibility with py37
2018-09-18 18:42:22 -03:00
Felix Yan
e93060c81b
Fix compatibility with Python 3.7
2018-09-18 16:41:42 -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
Luiz Menezes
e9d00a5e2a
Fix test_use_proxy cassette response type
2018-09-18 11:13:39 -03:00
Danilo Shiga
957db22d5c
Improve test_use_proxy with cassette headers and play_count assertion
2018-09-18 11:06:15 -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
ff7dd06f47
fix proxy for Python 2
2018-07-13 16:44:19 +01:00
Samuel Fekete
4b6b5effc7
Add headers in proxy server response
2018-07-13 16:44:19 +01:00
Samuel Fekete
06dc2190d6
Fix format string for Python 2.6
2018-07-13 16:40:35 +01:00
Samuel Fekete
bed9e520a3
Fix socketserver for Python 3
2018-07-13 16:40:35 +01:00
Samuel Fekete
365a98bf66
Fix failing tests
2018-07-13 16:40:35 +01:00
Samuel Fekete
236dc1f4f2
Add test for proxies
2018-07-13 16:34:21 +01:00
Luiz Menezes
aff71c5107
Merge pull request #356 from kgraves/fix_before_record_response_mutates_actual_response
...
fixes before_record_response mutates response
2018-07-12 23:19:57 -03:00
Luiz Menezes
306238d561
Test aiohttp usage with query strings on the URL
2018-07-08 23:06:22 -03:00
Luiz Menezes
75cb067e29
Fix content type being passed to aiohttp response stub
2018-07-07 23:56:39 -03:00
kg
ba79174a1f
fixes before_record_response mutates response
...
When no cassette exists, it's expected that the response returned, should be
the original, unchanged response. The response recorded in the cassette should be
that which is returned by the before_record_response callback.
But on subsequent requests/responses (when a cassette exists), the responses
returned should be exactly what is in the cassette.
resolves #355
2018-05-24 01:12:13 +00:00
Luiz Menezes
3009cbbbe9
Skip requests test instead of failing for python >= 3.6
2018-05-16 12:39:44 -03:00
Luiz Menezes
f811b41ad9
Fix tests aiohttp_utils.aiohttp_request return values
2018-05-16 11:12:51 -03:00
Luiz Menezes
140bc2ee74
Allow test failure on pypy3+aiohttp
2018-05-08 09:45:17 -03:00
Luiz Menezes
867fd9ab4b
Ignore flake8 for entire file on aiohttp_utils
2018-05-07 10:58:09 -03:00
Luiz Menezes
545c903ee2
pep8 fix on aiohttp_utils
2018-05-07 10:00:27 -03:00
Luiz Menezes
cd864b5eca
Fix aiohttp tests to include content type when parsing response to json
2018-05-07 09:55:12 -03:00
Luiz Menezes
689d68a0a2
Use async syntax on aiohttp_utils
2018-05-07 09:25:21 -03:00
Luiz Menezes
709017ea46
Fix aiohttp utils to pass encondig to response.json
2018-05-07 09:25:21 -03:00
Luiz Menezes
7e695ff7bc
Fix test aiohttp imports
2018-05-07 09:25:21 -03:00
Luiz Menezes
bd08e5119f
Maintain support to python 3.4 and aiohttp
2018-05-07 09:25:21 -03:00
Luiz Menezes
6ab508d67d
Fix aiohttp_request to properly perform aiohttp requests
2018-05-07 09:25:21 -03:00
Luiz Menezes
f1f8ce2af4
Ignore syntax error on async stuff
2018-05-07 09:25:21 -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
ead48b1907
xfail for test_post_chunked_binary_secure on CPython 3.5
2018-01-15 15:05:53 +02:00
Hugo
58d8980cfa
Remove dependency on bugs.python.org/xmlrpc: 301 Moved Permanently
2018-01-15 09:54:11 +02: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
Hugo
87666ba2e4
Multiple context managers supported in 2.7+
2018-01-15 09:54:11 +02:00
Ivan Malison
c366852925
Merge pull request #324 from petr-bulusek/custom-persister
...
Fix of registering custom persister and test.
2017-10-25 02:17:08 -07:00
Allisson Azevedo
0cab15658f
Merge remote-tracking branch 'upstream/master'
2017-09-20 11:58:07 -03:00
Laurent Mazuel
262ad903cb
Don't unmock requests.packages if not necessary
2017-08-17 08:37:11 -07:00
Laurent Mazuel
ec60af0214
Fix mixup between httplib and urllib3
2017-08-17 08:37:11 -07:00
Petr Bulusek
8cf8d3f69c
delete ipdb.set_trace
2017-08-12 17:58:52 +02:00
Petr Bulusek
034aeb4f17
typo
2017-08-11 14:41:11 +02:00
Petr Bulusek
d59efbc6e0
Instantiating class not necessary.
2017-08-09 15:18:00 +02:00
Petr Bulusek
b753a491c9
revert PR unrelated change, better comment
2017-08-09 14:44:39 +02:00
Petr Bulusek
9092b34dd1
register custom persister fix
2017-08-09 14:25:10 +02:00
Allisson Azevedo
c55d976277
Update aiohttp_stub to work with binary content
2017-06-22 15:12:58 -03:00
Thomas Grainger
204cb8f2ac
Merge pull request #303 from graingert/support-3.6
...
support 3.6
2017-05-02 11:17:39 +01:00
Thomas Grainger
dc2dc306d5
pytest-httpbin doesn't support chunked requests on Python 3.6
2017-04-04 11:30:16 +01:00