update batch

This commit is contained in:
2025-05-30 15:32:31 -03:00
parent efd962cdba
commit b048febbd5
24 changed files with 455 additions and 69 deletions

View File

@@ -1,3 +1,4 @@
import json
from http import HTTPMethod, HTTPStatus
from layercake.dynamodb import (
@@ -36,6 +37,21 @@ def test_enroll(
'id': '6d69a34a-cefd-40aa-a89b-dceb694c3e61',
'name': 'pytest',
},
'deduplication_window': {
'offset_days': 60,
},
},
{
'user': {
'id': '9a41e867-55e1-4573-bd27-7b5d1d1bcfde',
'name': 'Tiago Maciel',
'email': 'tiago@somosbeta.com.br',
'cpf': '08679004901',
},
'course': {
'id': '6d69a34a-cefd-40aa-a89b-dceb694c3e61',
'name': 'pytest',
},
},
],
},
@@ -43,8 +59,8 @@ def test_enroll(
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK
print(r)
# assert r['statusCode'] == HTTPStatus.OK
print(json.loads(r['body']))
def test_vacancies(