Skip to content

Commit 88cf01a

Browse files
committed
Fix format code
1 parent 85ae012 commit 88cf01a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/integration/test_httpx.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ def test_stream(tmpdir, httpbin, do_request):
286286
assert len(cassette_content) == 512
287287
assert cassette.play_count == 1
288288

289+
289290
@pytest.mark.online
290291
def test_text_content_type(tmpdir, httpbin, do_request):
291292
url = httpbin.url + "/json"
@@ -297,7 +298,8 @@ def test_text_content_type(tmpdir, httpbin, do_request):
297298
cassette_response = do_request()("GET", url)
298299
assert cassette_response.content == response.content
299300
assert cassette.play_count == 1
300-
assert isinstance(cassette.responses[0]['content'], str)
301+
assert isinstance(cassette.responses[0]["content"], str)
302+
301303

302304
@pytest.mark.online
303305
def test_binary_content_type(tmpdir, httpbin, do_request):
@@ -310,4 +312,4 @@ def test_binary_content_type(tmpdir, httpbin, do_request):
310312
cassette_response = do_request()("GET", url)
311313
assert cassette_response.content == response.content
312314
assert cassette.play_count == 1
313-
assert isinstance(cassette.responses[0]['content'], bytes)
315+
assert isinstance(cassette.responses[0]["content"], bytes)

vcr/stubs/httpx_stubs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def _transform_headers(httpx_response):
3333
return out
3434

3535

36-
3736
def _to_serialized_response(httpx_response):
3837
try:
3938
content = httpx_response.content.decode("utf-8")

0 commit comments

Comments
 (0)