Convert fixtures/exceptions to Pytest
This commit is contained in:
parent
6d364dc7aa
commit
cb6731f340
16 changed files with 119 additions and 170 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import pytest
|
||||
|
||||
from moto.dynamodb2.exceptions import IncorrectOperandType, IncorrectDataType
|
||||
from moto.dynamodb2.models import Item, DynamoType
|
||||
from moto.dynamodb2.parsing.executors import UpdateExpressionExecutor
|
||||
from moto.dynamodb2.parsing.expressions import UpdateExpressionParser
|
||||
from moto.dynamodb2.parsing.validators import UpdateExpressionValidator
|
||||
from parameterized import parameterized
|
||||
|
||||
|
||||
def test_execution_of_if_not_exists_not_existing_value():
|
||||
|
|
@ -405,7 +406,7 @@ def test_execution_of_add_to_a_set():
|
|||
assert expected_item == item
|
||||
|
||||
|
||||
@parameterized(
|
||||
@pytest.mark.parametrize("expression_attribute_values,unexpected_data_type",
|
||||
[
|
||||
(
|
||||
{":value": {"S": "10"}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue