Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerhancock authored and jairhenrique committed Dec 12, 2023
1 parent db1e9e7 commit 85ae012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def test_text_content_type(tmpdir, httpbin, do_request):
assert cassette_response.content == response.content
assert cassette.play_count == 1
assert isinstance(cassette.responses[0]['content'], str)

@pytest.mark.online
def test_binary_content_type(tmpdir, httpbin, do_request):
url = httpbin.url + "/bytes/1024"
Expand All @@ -310,4 +310,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)
2 changes: 1 addition & 1 deletion vcr/stubs/httpx_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _to_serialized_response(httpx_response):
content = httpx_response.content.decode("utf-8")
except UnicodeDecodeError:
content = httpx_response.content

return {
"status_code": httpx_response.status_code,
"http_version": httpx_response.http_version,
Expand Down

0 comments on commit 85ae012

Please sign in to comment.