Skip to content

Commit

Permalink
Fix format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Dec 12, 2023
1 parent 85ae012 commit 88cf01a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/integration/test_httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def test_stream(tmpdir, httpbin, do_request):
assert len(cassette_content) == 512
assert cassette.play_count == 1


@pytest.mark.online
def test_text_content_type(tmpdir, httpbin, do_request):
url = httpbin.url + "/json"
Expand All @@ -297,7 +298,8 @@ def test_text_content_type(tmpdir, httpbin, do_request):
cassette_response = do_request()("GET", url)
assert cassette_response.content == response.content
assert cassette.play_count == 1
assert isinstance(cassette.responses[0]['content'], str)
assert isinstance(cassette.responses[0]["content"], str)


@pytest.mark.online
def test_binary_content_type(tmpdir, httpbin, do_request):
Expand All @@ -310,4 +312,4 @@ def test_binary_content_type(tmpdir, httpbin, do_request):
cassette_response = do_request()("GET", url)
assert cassette_response.content == response.content
assert cassette.play_count == 1
assert isinstance(cassette.responses[0]['content'], bytes)
assert isinstance(cassette.responses[0]["content"], bytes)
1 change: 0 additions & 1 deletion vcr/stubs/httpx_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def _transform_headers(httpx_response):
return out



def _to_serialized_response(httpx_response):
try:
content = httpx_response.content.decode("utf-8")
Expand Down

0 comments on commit 88cf01a

Please sign in to comment.