Testing new version of decorator.
This commit is contained in:
parent
d3df810065
commit
fde721bed7
123 changed files with 2740 additions and 1114 deletions
|
|
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||
import boto
|
||||
from boto.s3.connection import OrdinaryCallingFormat
|
||||
|
||||
from moto import mock_s3bucket_path, mock_s3
|
||||
from moto import mock_s3_deprecated
|
||||
|
||||
|
||||
def create_connection(key=None, secret=None):
|
||||
|
|
@ -11,12 +11,12 @@ def create_connection(key=None, secret=None):
|
|||
|
||||
|
||||
def test_bucketpath_combo_serial():
|
||||
@mock_s3bucket_path
|
||||
@mock_s3_deprecated
|
||||
def make_bucket_path():
|
||||
conn = create_connection()
|
||||
conn.create_bucket('mybucketpath')
|
||||
|
||||
@mock_s3
|
||||
@mock_s3_deprecated
|
||||
def make_bucket():
|
||||
conn = boto.connect_s3('the_key', 'the_secret')
|
||||
conn.create_bucket('mybucket')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue