Skip to content

Commit

Permalink
test formatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Aug 30, 2024
1 parent 5715c28 commit ad78f23
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/unit/synapseclient/core/unit_test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +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 @@ -178,10 +177,8 @@ 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 ad78f23

Please sign in to comment.