Skip to content

Commit

Permalink
Fix tests so they do not create local directories
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Jan 24, 2024
1 parent 7c4d078 commit ee19a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/s3/test_sync_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,12 @@ class TestSyncCommandWithS3Express(BaseS3TransferCommandTest):
prefix = 's3 sync '

def test_incompatible_with_sync_upload(self):
cmdline = '%s localdirectory/ s3://testdirectorybucket--usw2-az1--x-s3/' % self.prefix
cmdline = '%s %s s3://testdirectorybucket--usw2-az1--x-s3/' % (self.prefix, self.files.rootdir)
stderr = self.run_cmd(cmdline, expected_rc=252)[1]
self.assertIn('Cannot use sync command with a directory bucket.', stderr)

def test_incompatible_with_sync_download(self):
cmdline = '%s s3://testdirectorybucket--usw2-az1--x-s3/ localdirectory/' % self.prefix
cmdline = '%s s3://testdirectorybucket--usw2-az1--x-s3/ %s' % (self.prefix, self.files.rootdir)
stderr = self.run_cmd(cmdline, expected_rc=252)[1]
self.assertIn('Cannot use sync command with a directory bucket.', stderr)

Expand Down

0 comments on commit ee19a34

Please sign in to comment.