1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Fix lint erros

This commit is contained in:
Jair Henrique
2020-10-05 09:26:13 -03:00
committed by Kevin McCarthy
parent a172207df0
commit 9d414c8841
4 changed files with 9 additions and 8 deletions

View File

@@ -292,9 +292,9 @@ def test_not_modified(aiohttp_client, tmpdir):
def test_double_requests(tmpdir): def test_double_requests(tmpdir):
"""We should capture, record, and replay all requests and response chains, """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" url = "https://httpbin.org/get"

View File

@@ -12,7 +12,7 @@ from vcr.persisters.filesystem import FilesystemPersister
class CustomFilesystemPersister(object): class CustomFilesystemPersister(object):
"""Behaves just like default FilesystemPersister but adds .test extension """Behaves just like default FilesystemPersister but adds .test extension
to the cassette file""" to the cassette file"""
@staticmethod @staticmethod
def load_cassette(cassette_path, serializer): def load_cassette(cassette_path, serializer):

View File

@@ -80,6 +80,7 @@ deps =
aiohttp: aiohttp aiohttp: aiohttp
aiohttp: pytest-asyncio aiohttp: pytest-asyncio
aiohttp: pytest-aiohttp aiohttp: pytest-aiohttp
httpx: httpx
{py36,py37,py38}-{httpx}: httpx {py36,py37,py38}-{httpx}: httpx
{py36,py37,py38}-{httpx}: pytest-asyncio {py36,py37,py38}-{httpx}: pytest-asyncio
depends = depends =

View File

@@ -91,9 +91,9 @@ def build_response(vcr_request, vcr_response, history):
def _serialize_headers(headers): def _serialize_headers(headers):
"""Serialize CIMultiDictProxy to a pickle-able dict because proxy """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 # Mark strings as keys so 'istr' types don't show up in
# the cassettes as comments. # the cassettes as comments.
@@ -170,9 +170,9 @@ async def record_response(cassette, vcr_request, response):
async def record_responses(cassette, vcr_request, response): async def record_responses(cassette, vcr_request, response):
"""Because aiohttp follows redirects by default, we must support """Because aiohttp follows redirects by default, we must support
them by default. This method is used to write individual them by default. This method is used to write individual
request-response chains that were implicitly followed to get request-response chains that were implicitly followed to get
to the final destination. to the final destination.
""" """
for past_response in response.history: for past_response in response.history: