improve test case
This commit is contained in:
parent
e50ce7287d
commit
b60097fab2
1 changed files with 3 additions and 2 deletions
|
|
@ -522,10 +522,10 @@ def test_basic_projection_expressions_using_scan():
|
||||||
|
|
||||||
assert 'body' in results['Items'][0]
|
assert 'body' in results['Items'][0]
|
||||||
assert 'subject' not in results['Items'][0]
|
assert 'subject' not in results['Items'][0]
|
||||||
assert results['Items'][0]['body'] == 'some test message'
|
assert 'forum_name' not in results['Items'][0]
|
||||||
assert 'body' in results['Items'][1]
|
assert 'body' in results['Items'][1]
|
||||||
assert 'subject' not in results['Items'][1]
|
assert 'subject' not in results['Items'][1]
|
||||||
assert results['Items'][1]['body'] == 'yet another test message'
|
assert 'forum_name' not in results['Items'][1]
|
||||||
|
|
||||||
# The projection expression should not remove data from storage
|
# The projection expression should not remove data from storage
|
||||||
results = table.query(
|
results = table.query(
|
||||||
|
|
@ -536,6 +536,7 @@ def test_basic_projection_expressions_using_scan():
|
||||||
assert 'body' in results['Items'][1]
|
assert 'body' in results['Items'][1]
|
||||||
assert 'forum_name' in results['Items'][1]
|
assert 'forum_name' in results['Items'][1]
|
||||||
|
|
||||||
|
test_basic_projection_expressions_using_scan()
|
||||||
|
|
||||||
@mock_dynamodb2
|
@mock_dynamodb2
|
||||||
def test_basic_projection_expressions_with_attr_expression_names():
|
def test_basic_projection_expressions_with_attr_expression_names():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue