moto/tests/test_dynamodb2
pvbouwel e6b51a28ee Enable AST Validation
This commit puts AST validation on the execution path. This means updates get
validated prior to being executed. There were quite a few tests that were not
working against Amazon DDB. These tests I considered broken and as such this
commit adapts them such that they pass against Amazon DDB.

test_update_item_on_map()
=> One of the SET actions would try to set a nested element by specifying the nesting on the path
   rather than by putting a map as a value for a non-existent key. This got changed.

test_item_size_is_under_400KB
=> Used the keyword "item" which DDB doesn't like. Change to cont in order to keep the same sizings.
=> Secondly the size error messages differs a bit depending whether it is part of the update or part
   of a put_item. For an update it should be:
   Item size to update has exceeded the maximum allowed size
   otherwise it is
   Item size has exceeded the maximum allowed size'

test_remove_top_level_attribute
=> Used a keyword item.  Use ExpressionAttributeNames

test_update_item_double_nested_remove
=> Used keywords name & first. Migrated to non-deprecated API and use ExpressionAttributeNames

test_update_item_set &
test_boto3_update_item_conditions_pass &
test_boto3_update_item_conditions_pass_because_expect_not_exists &
test_boto3_update_item_conditions_pass_because_expect_not_exists_by_compare_to_null &
test_boto3_update_item_conditions_pass_because_expect_exists_by_compare_to_not_null &
test_boto3_update_item_conditions_fail &
test_boto3_update_item_conditions_fail_because_expect_not_exists &
test_boto3_update_item_conditions_fail_because_expect_not_exists_by_compare_to_null
=> Were broken tests which had string literal instead of value placeholder
2020-04-19 16:58:46 +01:00
..
test_dynamodb_expression_tokenizer.py Better DDB expressions support1: TokenizationDDB 2020-04-18 09:16:23 +01:00
test_dynamodb_expressions.py Improve DDB expressions support3: AST Validation 2020-04-19 16:58:07 +01:00
test_dynamodb_table_with_range_key.py Better DDB expressions support2: ExpressionTree 2020-04-18 09:19:03 +01:00
test_dynamodb_table_without_range_key.py Enable AST Validation 2020-04-19 16:58:46 +01:00
test_dynamodb_validation.py Improve DDB expressions support3: AST Validation 2020-04-19 16:58:07 +01:00
test_dynamodb.py Enable AST Validation 2020-04-19 16:58:46 +01:00
test_server.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00