From 9d414c8841a8bdea2a4a57ee369088316c82c85f Mon Sep 17 00:00:00 2001 From: Jair Henrique Date: Mon, 5 Oct 2020 09:26:13 -0300 Subject: [PATCH] Fix lint erros --- tests/integration/test_aiohttp.py | 4 ++-- tests/integration/test_register_persister.py | 2 +- tox.ini | 1 + vcr/stubs/aiohttp_stubs.py | 10 +++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/integration/test_aiohttp.py b/tests/integration/test_aiohttp.py index d0ce7bb..0c665d5 100644 --- a/tests/integration/test_aiohttp.py +++ b/tests/integration/test_aiohttp.py @@ -292,9 +292,9 @@ def test_not_modified(aiohttp_client, tmpdir): def test_double_requests(tmpdir): """We should capture, record, and replay all requests and response chains, - even if there are duplicate ones. + even if there are duplicate ones. - We should replay in the order we saw them. + We should replay in the order we saw them. """ url = "https://httpbin.org/get" diff --git a/tests/integration/test_register_persister.py b/tests/integration/test_register_persister.py index a7b134d..945ee71 100644 --- a/tests/integration/test_register_persister.py +++ b/tests/integration/test_register_persister.py @@ -12,7 +12,7 @@ from vcr.persisters.filesystem import FilesystemPersister class CustomFilesystemPersister(object): """Behaves just like default FilesystemPersister but adds .test extension - to the cassette file""" + to the cassette file""" @staticmethod def load_cassette(cassette_path, serializer): diff --git a/tox.ini b/tox.ini index f30a050..d64f6fe 100644 --- a/tox.ini +++ b/tox.ini @@ -80,6 +80,7 @@ deps = aiohttp: aiohttp aiohttp: pytest-asyncio aiohttp: pytest-aiohttp + httpx: httpx {py36,py37,py38}-{httpx}: httpx {py36,py37,py38}-{httpx}: pytest-asyncio depends = diff --git a/vcr/stubs/aiohttp_stubs.py b/vcr/stubs/aiohttp_stubs.py index 064ac0f..ca82d75 100644 --- a/vcr/stubs/aiohttp_stubs.py +++ b/vcr/stubs/aiohttp_stubs.py @@ -91,9 +91,9 @@ def build_response(vcr_request, vcr_response, history): def _serialize_headers(headers): """Serialize CIMultiDictProxy to a pickle-able dict because proxy - objects forbid pickling: + objects forbid pickling: - https://github.com/aio-libs/multidict/issues/340 + https://github.com/aio-libs/multidict/issues/340 """ # Mark strings as keys so 'istr' types don't show up in # the cassettes as comments. @@ -170,9 +170,9 @@ async def record_response(cassette, vcr_request, response): async def record_responses(cassette, vcr_request, response): """Because aiohttp follows redirects by default, we must support - them by default. This method is used to write individual - request-response chains that were implicitly followed to get - to the final destination. + them by default. This method is used to write individual + request-response chains that were implicitly followed to get + to the final destination. """ for past_response in response.history: