Fix dynamo batch length
This commit is contained in:
parent
59fe1abfdf
commit
02fa630a3c
@ -500,4 +500,6 @@ def test_batch_read():
|
|||||||
item.put()
|
item.put()
|
||||||
|
|
||||||
items = table.batch_get_item([('the-key', '123'), ('another-key', '789')])
|
items = table.batch_get_item([('the-key', '123'), ('another-key', '789')])
|
||||||
items.should.have.length_ofl(2)
|
# Iterate through so that batch_item gets called
|
||||||
|
count = len([x for x in items])
|
||||||
|
count.should.equal(2)
|
||||||
|
@ -411,4 +411,6 @@ def test_batch_read():
|
|||||||
item.put()
|
item.put()
|
||||||
|
|
||||||
items = table.batch_get_item([('the-key1'), ('another-key')])
|
items = table.batch_get_item([('the-key1'), ('another-key')])
|
||||||
items.should.have.length_of(2)
|
# Iterate through so that batch_item gets called
|
||||||
|
count = len([x for x in items])
|
||||||
|
count.should.have.equal(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user