Merge pull request #510 from pcraciunoiu/feature/dynamodb-add-value
Add value and UPDATE fixes
This commit is contained in:
commit
9596772546
4 changed files with 145 additions and 12 deletions
|
|
@ -431,7 +431,7 @@ def test_update_item_remove():
|
|||
}
|
||||
table.put_item(data=data)
|
||||
key_map = {
|
||||
"S": "steve"
|
||||
'username': {"S": "steve"}
|
||||
}
|
||||
|
||||
# Then remove the SentBy field
|
||||
|
|
@ -456,7 +456,7 @@ def test_update_item_set():
|
|||
}
|
||||
table.put_item(data=data)
|
||||
key_map = {
|
||||
"S": "steve"
|
||||
'username': {"S": "steve"}
|
||||
}
|
||||
|
||||
conn.update_item("messages", key_map, update_expression="SET foo=:bar, blah=:baz REMOVE :SentBy")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue