From 6c8f3c9ef5f5505b61598bd5f10ca53c44269c36 Mon Sep 17 00:00:00 2001 From: Casey Jao Date: Mon, 20 Jan 2025 10:41:31 -0500 Subject: [PATCH] Fix test --- .../file_transfer/strategies/s3_strategy_test.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/covalent_tests/file_transfer/strategies/s3_strategy_test.py b/tests/covalent_tests/file_transfer/strategies/s3_strategy_test.py index 27bc65bb6..68dab2947 100644 --- a/tests/covalent_tests/file_transfer/strategies/s3_strategy_test.py +++ b/tests/covalent_tests/file_transfer/strategies/s3_strategy_test.py @@ -138,9 +138,6 @@ def test_folder_upload(self, mocker): "covalent._file_transfer.strategies.s3_strategy.os.path.relpath", return_value="mock_path", ) - mocker.patch( - "covalent._file_transfer.strategies.s3_strategy.os.path.join", return_value="mock_join" - ) to_folder = Folder("s3://mock-bucket/") from_folder = Folder("/tmp/") @@ -156,5 +153,5 @@ def test_folder_upload(self, mocker): callable_func = S3(**self.MOCK_STRATEGY_CONFIG).upload(from_folder, to_folder) callable_func() boto3_client_mock().upload_file.assert_called_once_with( - "/tmp/mock_join", bucket_name, "mock_join" + "/tmp/mock_path/test.csv", bucket_name, "mock_path/test.csv" )