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

Method test_scan_negative_segment

tests/test_query_scan.py:478–486  ·  view source on GitHub ↗

Negative Segment value is rejected by the service.

(self, dynamodb_client_no_validation, scan_table)

Source from the content-addressed store, hash-verified

476 """Scan validation edge cases from recent fixes."""
477
478 def test_scan_negative_segment(self, dynamodb_client_no_validation, scan_table):
479 """Negative Segment value is rejected by the service."""
480 with pytest.raises(ClientError) as exc_info:
481 dynamodb_client_no_validation.scan(
482 TableName=scan_table,
483 Segment=-1,
484 TotalSegments=3,
485 )
486 assert exc_info.value.response["Error"]["Code"] == "ValidationException"
487
488 def test_scan_unused_expression_attribute_names(self, dynamodb_client, scan_table):
489 """Extra ExpressionAttributeNames not referenced in any expression are rejected."""

Callers

nothing calls this directly

Calls 1

scanMethod · 0.80

Tested by

no test coverage detected