Fix for moto not unmocking.
- Fixes #2575 - Also upgraded Travis CI to make use of Bionic instead of Xenial - This may also address concerns raised in #1793
This commit is contained in:
parent
6922606398
commit
bd777cad44
5 changed files with 31 additions and 28 deletions
|
|
@ -3119,8 +3119,8 @@ def test_sorted_query_with_numerical_sort_key():
|
|||
# https://github.com/spulec/moto/issues/1874
|
||||
@mock_dynamodb2
|
||||
def test_item_size_is_under_400KB():
|
||||
dynamodb = boto3.resource("dynamodb")
|
||||
client = boto3.client("dynamodb")
|
||||
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
|
||||
client = boto3.client("dynamodb", region_name="us-east-1")
|
||||
|
||||
dynamodb.create_table(
|
||||
TableName="moto-test",
|
||||
|
|
@ -3172,7 +3172,7 @@ def assert_failure_due_to_item_size(func, **kwargs):
|
|||
@mock_dynamodb2
|
||||
# https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-KeyConditionExpression
|
||||
def test_hash_key_cannot_use_begins_with_operations():
|
||||
dynamodb = boto3.resource("dynamodb")
|
||||
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
|
||||
table = dynamodb.create_table(
|
||||
TableName="test-table",
|
||||
KeySchema=[{"AttributeName": "key", "KeyType": "HASH"}],
|
||||
|
|
@ -3201,7 +3201,7 @@ def test_hash_key_cannot_use_begins_with_operations():
|
|||
|
||||
@mock_dynamodb2
|
||||
def test_update_supports_complex_expression_attribute_values():
|
||||
client = boto3.client("dynamodb")
|
||||
client = boto3.client("dynamodb", region_name="us-east-1")
|
||||
|
||||
client.create_table(
|
||||
AttributeDefinitions=[{"AttributeName": "SHA256", "AttributeType": "S"}],
|
||||
|
|
@ -3237,7 +3237,7 @@ def test_update_supports_complex_expression_attribute_values():
|
|||
|
||||
@mock_dynamodb2
|
||||
def test_update_supports_list_append():
|
||||
client = boto3.client("dynamodb")
|
||||
client = boto3.client("dynamodb", region_name="us-east-1")
|
||||
|
||||
client.create_table(
|
||||
AttributeDefinitions=[{"AttributeName": "SHA256", "AttributeType": "S"}],
|
||||
|
|
@ -3272,7 +3272,7 @@ def test_update_supports_list_append():
|
|||
|
||||
@mock_dynamodb2
|
||||
def test_update_catches_invalid_list_append_operation():
|
||||
client = boto3.client("dynamodb")
|
||||
client = boto3.client("dynamodb", region_name="us-east-1")
|
||||
|
||||
client.create_table(
|
||||
AttributeDefinitions=[{"AttributeName": "SHA256", "AttributeType": "S"}],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue