These tests do not use pytest

This commit is contained in:
William Richard 2018-06-06 12:09:09 -04:00
parent 8092929258
commit 25b5f03ea4
No known key found for this signature in database
GPG Key ID: F7F8BA4DDBE1ABED

View File

@ -6,7 +6,6 @@ import boto3
from boto3.dynamodb.conditions import Attr from boto3.dynamodb.conditions import Attr
import sure # noqa import sure # noqa
import requests import requests
from pytest import raises
from moto import mock_dynamodb2, mock_dynamodb2_deprecated from moto import mock_dynamodb2, mock_dynamodb2_deprecated
from moto.dynamodb2 import dynamodb_backend2 from moto.dynamodb2 import dynamodb_backend2
from boto.exception import JSONResponseError from boto.exception import JSONResponseError
@ -1119,7 +1118,7 @@ def test_update_item_on_map():
}) })
# Test nested value for a nonexistent attribute. # Test nested value for a nonexistent attribute.
with raises(client.exceptions.ConditionalCheckFailedException): with assert_raises(client.exceptions.ConditionalCheckFailedException):
table.update_item(Key={ table.update_item(Key={
'forum_name': 'the-key', 'forum_name': 'the-key',
'subject': '123' 'subject': '123'