Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Aug 30, 2024
1 parent ad78f23 commit 7d417b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/unit/synapseclient/core/unit_test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ async def test_mock_download(syn: Synapse) -> None:
[create_mock_response(url, "stream", contents=contents, buffer_size=1024)]
)

with patch.object(syn._requests_session, "get", side_effect=mock_requests_get), patch.object(
Synapse, "_generate_headers", side_effect=mock_generate_headers
):
with patch.object(
syn._requests_session, "get", side_effect=mock_requests_get
), patch.object(Synapse, "_generate_headers", side_effect=mock_generate_headers):
download_from_url(
url=url,
destination=temp_dir,
Expand All @@ -177,8 +177,9 @@ async def test_mock_download(syn: Synapse) -> None:
]
)

with patch.object(syn._requests_session, "get", side_effect=mock_requests_get), patch.object(
Synapse, "_generate_headers", side_effect=mock_generate_headers):
with patch.object(
syn._requests_session, "get", side_effect=mock_requests_get
), patch.object(Synapse, "_generate_headers", side_effect=mock_generate_headers):
download_from_url(
url=url,
destination=temp_dir,
Expand Down

0 comments on commit 7d417b3

Please sign in to comment.