-
-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #112 - Check if bucket exists for path=''
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm not quite sure that this test does what you think it's testing; I don't think S3ResponseError could ever be raised.
When auto_create_bucket is False (the default), then in the real non-test code, get_bucket(validate=False) is called inside _get_or_create_bucket(), and with validate=False, no actual call ever goes to S3 that could return the S3ResponseError. Thus this is a no-op, but I think in this case you actually /do/ want it it actually check the buckets existence.
Also note that I'm trying to get S3Boto3 up to date with the commits, and figuring out how to properly emulate this is my last blocker to getting you an update pull request.