update layercake version
This commit is contained in:
@@ -3,7 +3,6 @@ from http import HTTPMethod, HTTPStatus
|
||||
|
||||
from layercake.dynamodb import (
|
||||
ComposeKey,
|
||||
DynamoDBCollection,
|
||||
DynamoDBPersistenceLayer,
|
||||
KeyPair,
|
||||
PartitionKey,
|
||||
@@ -58,8 +57,8 @@ def test_post_course(
|
||||
assert 'id' in json.loads(r['body'])
|
||||
assert r['statusCode'] == HTTPStatus.CREATED
|
||||
|
||||
collect = DynamoDBCollection(dynamodb_persistence_layer)
|
||||
logs = collect.query(
|
||||
collection = dynamodb_persistence_layer.collection
|
||||
logs = collection.query(
|
||||
PartitionKey(
|
||||
ComposeKey('5OxmMjL-ujoR5IMGegQz', prefix='log', delimiter=':'),
|
||||
)
|
||||
@@ -92,6 +91,6 @@ def test_put_course(
|
||||
)
|
||||
assert r['statusCode'] == HTTPStatus.OK
|
||||
|
||||
collect = DynamoDBCollection(dynamodb_persistence_layer)
|
||||
course = collect.get_item(KeyPair('90d7f0d2-d9a4-4467-a31c-f9a7955964cf', '0'))
|
||||
collection = dynamodb_persistence_layer.collection
|
||||
course = collection.get_item(KeyPair('90d7f0d2-d9a4-4467-a31c-f9a7955964cf', '0'))
|
||||
assert course['name'] == 'pytest'
|
||||
|
||||
Reference in New Issue
Block a user