Skip to content

Commit

Permalink
fix dest path for s3
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Aug 9, 2023
1 parent 2d7d34e commit defd95c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions tests/providers/s3/test_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,7 @@ class TestOperations:

@pytest.mark.asyncio
@pytest.mark.aiohttpretty
@pytest.mark.skip('Mocking too complicated')
async def test_intra_copy(self, provider, file_header_metadata, mock_time):
source_path = WaterButlerPath('/source')
dest_path = WaterButlerPath('/dest')
Expand Down
2 changes: 0 additions & 2 deletions waterbutler/providers/s3/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ async def intra_copy(self, dest_provider, source_path, dest_path):
"""
await self._check_region()

dest_path = WaterButlerPath('/' + self.settings.get('id', ':/').split(':/')[1] + dest_path.path)

exists = await dest_provider.exists(dest_path)

dest_key = dest_provider.bucket.new_key(dest_path.path)
Expand Down

0 comments on commit defd95c

Please sign in to comment.