Update tests/test_dynamodb2/test_dynamodb.py

Co-Authored-By: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
This commit is contained in:
Bert Blommers 2020-04-15 07:26:09 +01:00 committed by GitHub
parent c2b4c397f2
commit a6902e8713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4168,6 +4168,5 @@ def test_dynamodb_max_1mb_limit():
KeyConditionExpression=Key("partition_key").eq("partition_key_val")
)
# We shouldn't get everything back - the total result set is well over 1MB
assert response["Count"] < len(items)
len(items).should.be.greater_than(response["Count"])
response["LastEvaluatedKey"].shouldnt.be(None)