run black
This commit is contained in:
parent
0a7d299da3
commit
5bd3827b26
@ -586,7 +586,9 @@ class StreamRecord(BaseModel):
|
|||||||
self.record["dynamodb"]["OldImage"] = old_a
|
self.record["dynamodb"]["OldImage"] = old_a
|
||||||
|
|
||||||
# This is a substantial overestimate but it's the easiest to do now
|
# This is a substantial overestimate but it's the easiest to do now
|
||||||
self.record["dynamodb"]["SizeBytes"] = len(dynamo_json_dump(self.record["dynamodb"]))
|
self.record["dynamodb"]["SizeBytes"] = len(
|
||||||
|
dynamo_json_dump(self.record["dynamodb"])
|
||||||
|
)
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return self.record
|
return self.record
|
||||||
|
@ -348,6 +348,8 @@ def test_put_item_with_special_chars():
|
|||||||
'"': {"S": "foo"},
|
'"': {"S": "foo"},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@requires_boto_gte("2.9")
|
@requires_boto_gte("2.9")
|
||||||
@mock_dynamodb2
|
@mock_dynamodb2
|
||||||
def test_put_item_with_streams():
|
def test_put_item_with_streams():
|
||||||
@ -363,7 +365,10 @@ def test_put_item_with_streams():
|
|||||||
TableName=name,
|
TableName=name,
|
||||||
KeySchema=[{"AttributeName": "forum_name", "KeyType": "HASH"}],
|
KeySchema=[{"AttributeName": "forum_name", "KeyType": "HASH"}],
|
||||||
AttributeDefinitions=[{"AttributeName": "forum_name", "AttributeType": "S"}],
|
AttributeDefinitions=[{"AttributeName": "forum_name", "AttributeType": "S"}],
|
||||||
StreamSpecification={'StreamEnabled': True, 'StreamViewType': 'NEW_AND_OLD_IMAGES'},
|
StreamSpecification={
|
||||||
|
"StreamEnabled": True,
|
||||||
|
"StreamViewType": "NEW_AND_OLD_IMAGES",
|
||||||
|
},
|
||||||
ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},
|
ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -374,7 +379,7 @@ def test_put_item_with_streams():
|
|||||||
"subject": {"S": "Check this out!"},
|
"subject": {"S": "Check this out!"},
|
||||||
"Body": {"S": "http://url_to_lolcat.gif"},
|
"Body": {"S": "http://url_to_lolcat.gif"},
|
||||||
"SentBy": {"S": "test"},
|
"SentBy": {"S": "test"},
|
||||||
"Data": {"M": {"Key1": {"S": "Value1"}, "Key2": {"S": "Value2"}}}
|
"Data": {"M": {"Key1": {"S": "Value1"}, "Key2": {"S": "Value2"}}},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user