add route to download html template

This commit is contained in:
2025-10-25 22:14:18 -03:00
parent 29ecb87e45
commit f284b64c60
6 changed files with 42 additions and 10 deletions

View File

@@ -82,3 +82,23 @@ def test_sample(
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK
def test_template(
app,
seeds,
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
r = app.lambda_handler(
http_api_proxy(
raw_path='/courses/2a8963fc-4694-4fe2-953a-316d1b10f1f5/template',
method=HTTPMethod.POST,
body={
's3_uri': 's3://saladeaula.digital/certs/samples/cipa-grau-de-risco-1.html',
},
),
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK