1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

support ClientResponse.text(errors=) kwarg

This commit is contained in:
Thomas Grainger
2018-10-15 02:55:59 +01:00
parent 8fdc6dbb68
commit 4ef5205094
2 changed files with 4 additions and 2 deletions

View File

@@ -168,6 +168,8 @@ def test_aiohttp_test_client(aiohttp_client, tmpdir):
assert response.status == 200
response_text = loop.run_until_complete(response.text())
assert response_text == 'hello'
response_text = loop.run_until_complete(response.text(errors='replace'))
assert response_text == 'hello'
with vcr.use_cassette(str(tmpdir.join('get.yaml'))) as cassette:
response = loop.run_until_complete(client.get(url))