Luiz Menezes
792c5c4558
Record intermediary redirect responses on aiohttp stub
2019-07-09 18:39:36 -03:00
Stefan T
a17624a464
Record json kwarg in aiohttp request ( #412 )
...
* Record `json` kwarg in aiohttp request
Aiohttp supports `data` and `json` parameters to make a request.
Aiohttp enforces that only one is used make a request.
* Log when aiohttp stub makes request to live server
resolves : #406
* Record aiohttp `auth` request kwarg
Aiohttp request supports basic auth via the `auth` method parameter.
It is set as a request header by aiohttp ClientRequest.
2019-07-05 10:57:39 +10:00
Luiz Menezes
bbab27ed1b
Use primitive types when recording cassettes using aiohttp stub ( #454 )
2019-07-05 10:52:08 +10:00
Stanislav Evseev
7c14d81ab1
CHANGE: return None from json if body is empty
2019-07-01 14:25:38 +02:00
Steinn Eldjárn Sigurðarson
e8a9a65bef
Make test use stream output to test MockStream interface
2019-06-28 13:35:05 +00:00
Steinn Eldjárn Sigurðarson
6c41b8b723
Use built-in helpers to avoid use of async keywords which cause syntax errors on 2.x
2019-06-28 13:30:14 +00:00
Steinn Eldjárn Sigurðarson
cc55ef5b35
Add test for MockStream on aiohttp
2019-06-28 12:55:54 +00:00
Thomas Grainger
4ef5205094
support ClientResponse.text(errors=) kwarg
2018-10-15 03:00:19 +01: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
Luiz Menezes
306238d561
Test aiohttp usage with query strings on the URL
2018-07-08 23:06:22 -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
7e695ff7bc
Fix test aiohttp imports
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
c55d976277
Update aiohttp_stub to work with binary content
2017-06-22 15:12:58 -03:00
Thomas Grainger
7514d94262
handle pytest-asyncio async def coroutines
2017-04-03 15:49:49 +01:00
Luiz Menezes
973d8339b3
add tests for aiohttp params fix
2016-10-02 10:22:29 -10:00
Luiz Menezes
066752aa0b
rename file
2016-08-11 08:32:47 -03:00
Luiz Menezes
609d8e35be
fix test_aiohttp
2016-08-10 18:12:38 -03:00
Luiz Menezes
ce14de8251
fix tests
2016-08-10 15:56:19 -03:00
Luiz Menezes
8851571ba7
add integration tests for aiohttp
2016-08-04 13:40:04 -03:00