add himself to log
This commit is contained in:
@@ -31,13 +31,14 @@ def test_post_course(
|
||||
lambda_context,
|
||||
)
|
||||
|
||||
# print(r)
|
||||
|
||||
assert 'id' in json.loads(r['body'])
|
||||
assert r['statusCode'] == HTTPStatus.CREATED
|
||||
|
||||
collect = DynamoDBCollection(dynamodb_persistence_layer)
|
||||
logs = collect.get_items(
|
||||
PartitionKey(ComposeKey('5OxmMjL-ujoR5IMGegQz', prefix='log', delimiter=':'))
|
||||
PartitionKey(
|
||||
ComposeKey('5OxmMjL-ujoR5IMGegQz', prefix='log', delimiter=':'),
|
||||
)
|
||||
)
|
||||
assert len(logs['items']) == 3
|
||||
print(logs)
|
||||
|
||||
Reference in New Issue
Block a user