Slide 39
Slide 39 text
ίϨݏɾɾɾ
@mock_dynamodb2
def test_get_api(self):
dynamodb = boto3.resource('dynamodb')
dynamodb.create_table(
TableName='Movies',
KeySchema=[
{
'AttributeName': 'year',
'KeyType': 'HASH'
},
{
'AttributeName': 'title',
'KeyType': 'RANGE'
}
],
AttributeDefinitions=[
{
'AttributeName': 'year',
'AttributeType': 'N'
},
{
'AttributeName': 'title',
'AttributeType': 'S'
},
],
ProvisionedThroughput={
'ReadCapacityUnits': 10,
'WriteCapacityUnits': 10
}
)
ςʔϒϧఆٛ4".ςϯϓϨʔ
τͰཧ͍ͯ͠Δͷʹɺςετίʔ
υʹ͍͍ͪͪςʔϒϧఆٛΛॻ͖
ͨ͘ͳ͍