From 7b512b3eb3e4f59613a593ddbfca6ec49fa5bc76 Mon Sep 17 00:00:00 2001 From: bwmac Date: Thu, 29 Aug 2024 20:20:34 -0600 Subject: [PATCH] fix formatting --- .../synapseclient/core/unit_test_download.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tests/unit/synapseclient/core/unit_test_download.py b/tests/unit/synapseclient/core/unit_test_download.py index 073e99091..eb0820007 100644 --- a/tests/unit/synapseclient/core/unit_test_download.py +++ b/tests/unit/synapseclient/core/unit_test_download.py @@ -524,17 +524,14 @@ async def test_multithread_false_s3_file_handle_small_file(self) -> None: await self._multithread_not_applicable(file_handle) async def test_multithread_false_s3_file_handle(self) -> None: - with ( - patch.object(os, "makedirs"), - patch( - GET_FILE_HANDLE_FOR_DOWNLOAD, - new_callable=AsyncMock, - ) as mock_getFileHandleDownload, - patch( - DOWNLOAD_FROM_URL, - new_callable=AsyncMock, - ) as mock_download_from_URL, - patch.object(self.syn, "cache"), + with patch.object(os, "makedirs"), patch( + GET_FILE_HANDLE_FOR_DOWNLOAD, + new_callable=AsyncMock, + ) as mock_getFileHandleDownload, patch( + DOWNLOAD_FROM_URL, + new_callable=AsyncMock, + ) as mock_download_from_URL, patch.object( + self.syn, "cache" ): mock_getFileHandleDownload.return_value = { "fileHandle": {