MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / test_scan_pagination

Method test_scan_pagination

tests/test_query_scan.py:276–285  ·  view source on GitHub ↗
(self, dynamodb_client, scan_table)

Source from the content-addressed store, hash-verified

274 assert "LastEvaluatedKey" in resp
275
276 def test_scan_pagination(self, dynamodb_client, scan_table):
277 all_items: list = []
278 kwargs: dict = {"TableName": scan_table, "Limit": 4}
279 while True:
280 resp = dynamodb_client.scan(**kwargs)
281 all_items.extend(resp["Items"])
282 if "LastEvaluatedKey" not in resp:
283 break
284 kwargs["ExclusiveStartKey"] = resp["LastEvaluatedKey"]
285 assert len(all_items) == 13
286
287 def test_scan_projection(self, dynamodb_client, scan_table):
288 resp = dynamodb_client.scan(

Callers

nothing calls this directly

Calls 1

scanMethod · 0.80

Tested by

no test coverage detected