Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed Jan 20, 2025
1 parent c5824ab commit 6c8f3c9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand All @@ -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"
)

0 comments on commit 6c8f3c9

Please sign in to comment.