Testing new version of decorator.

This commit is contained in:
Steve Pulec 2017-02-15 22:35:45 -05:00
commit fde721bed7
123 changed files with 2740 additions and 1114 deletions

View file

@ -4,7 +4,7 @@ import six
import boto
import sure # noqa
import requests
from moto import mock_dynamodb2
from moto import mock_dynamodb2, mock_dynamodb2_deprecated
from moto.dynamodb2 import dynamodb_backend2
from boto.exception import JSONResponseError
from tests.helpers import requires_boto_gte
@ -16,7 +16,7 @@ except ImportError:
print("This boto version is not supported")
@requires_boto_gte("2.9")
@mock_dynamodb2
@mock_dynamodb2_deprecated
def test_list_tables():
name = 'TestTable'
#{'schema': }
@ -32,7 +32,7 @@ def test_list_tables():
@requires_boto_gte("2.9")
@mock_dynamodb2
@mock_dynamodb2_deprecated
def test_list_tables_layer_1():
dynamodb_backend2.create_table("test_1",schema=[
{u'KeyType': u'HASH', u'AttributeName': u'name'}
@ -55,7 +55,7 @@ def test_list_tables_layer_1():
@requires_boto_gte("2.9")
@mock_dynamodb2
@mock_dynamodb2_deprecated
def test_describe_missing_table():
conn = boto.dynamodb2.connect_to_region(
'us-west-2',