From ad78f2377c585d9bc5cacb3220006de1dd706710 Mon Sep 17 00:00:00 2001 From: bwmac Date: Fri, 30 Aug 2024 10:23:58 -0600 Subject: [PATCH] test formatting again --- tests/unit/synapseclient/core/unit_test_download.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/unit/synapseclient/core/unit_test_download.py b/tests/unit/synapseclient/core/unit_test_download.py index f775050f1..9b8bdfe23 100644 --- a/tests/unit/synapseclient/core/unit_test_download.py +++ b/tests/unit/synapseclient/core/unit_test_download.py @@ -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, @@ -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,