Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Oct 18, 2024
1 parent 7e36eae commit 96084e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integrations/file/test_File__download.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_bad_resource(mock_tools):

def test_get_connection_error(mock_tools):
"""NetworkFailure raises if httpx.stream() errors."""
mock_tools.httpx.stream.side_effect = [
mock_tools.httpx.stream.return_value.__enter__.side_effect = [
httpx.TooManyRedirects("Exceeded max redirects")
]

Expand Down

0 comments on commit 96084e1

Please sign in to comment.