mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
make linters happy
This commit is contained in:
committed by
Jair Henrique
parent
f5fc7aac22
commit
f4467a8d6c
@@ -1,4 +1,3 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@@ -7,7 +6,6 @@ import vcr
|
|||||||
asyncio = pytest.importorskip("asyncio")
|
asyncio = pytest.importorskip("asyncio")
|
||||||
httpx = pytest.importorskip("httpx")
|
httpx = pytest.importorskip("httpx")
|
||||||
|
|
||||||
from vcr.stubs.httpx_stubs import HTTPX_REDIRECT_PARAM # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(params=["https", "http"])
|
@pytest.fixture(params=["https", "http"])
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
"""Test using a proxy."""
|
"""Test using a proxy."""
|
||||||
|
|
||||||
import http.server
|
import http.server
|
||||||
import multiprocessing
|
|
||||||
import threading
|
|
||||||
import socketserver
|
import socketserver
|
||||||
|
import threading
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def convert_body_to_unicode(resp):
|
|||||||
If the request or responses body is bytes, decode it to a string
|
If the request or responses body is bytes, decode it to a string
|
||||||
(for python3 support)
|
(for python3 support)
|
||||||
"""
|
"""
|
||||||
if type(resp) is not dict:
|
if not isinstance(resp, dict):
|
||||||
# Some of the tests just serialize and deserialize a string.
|
# Some of the tests just serialize and deserialize a string.
|
||||||
return _convert_string_to_unicode(resp)
|
return _convert_string_to_unicode(resp)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user