add himself to log

This commit is contained in:
2025-04-02 16:04:06 -03:00
parent 748764833b
commit 34085af4a8
3 changed files with 13 additions and 5 deletions

View File

@@ -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)