add get_all_buckets
This commit is contained in:
parent
28a46a5a3a
commit
ba360daa0f
3 changed files with 38 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ class FakeBucket(object):
|
|||
|
||||
|
||||
class S3Backend(BaseBackend):
|
||||
base_url = "https://(.+).s3.amazonaws.com"
|
||||
base_url = "https://(.*)s3.amazonaws.com"
|
||||
|
||||
def __init__(self):
|
||||
self.buckets = {}
|
||||
|
|
@ -33,6 +33,9 @@ class S3Backend(BaseBackend):
|
|||
self.buckets[bucket_name] = new_bucket
|
||||
return new_bucket
|
||||
|
||||
def get_all_buckets(self):
|
||||
return self.buckets.values()
|
||||
|
||||
def get_bucket(self, bucket_name):
|
||||
return self.buckets.get(bucket_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue