dynamodb2 was evaluating ProjectionExpression on the wrong local result set

This commit is contained in:
Eric Reinecke 2017-11-10 21:57:16 -08:00
commit 64fb0207e2
2 changed files with 4 additions and 1 deletions

View file

@ -367,8 +367,10 @@ def test_basic_projection_expressions():
)
assert 'body' in results['Items'][0]
assert 'subject' not in results['Items'][0]
assert results['Items'][0]['body'] == 'some test message'
assert 'body' in results['Items'][1]
assert 'subject' not in results['Items'][1]
assert results['Items'][1]['body'] == 'yet another test message'
# The projection expression should not remove data from storage