add forgot login

This commit is contained in:
2025-12-05 10:23:22 -03:00
parent b929c492c0
commit 7c3239d856
14 changed files with 270 additions and 57 deletions

View File

@@ -1,3 +1,4 @@
import json
from http import HTTPMethod
from layercake.dynamodb import DynamoDBPersistenceLayer, PartitionKey
@@ -20,7 +21,8 @@ def test_forgot(
),
lambda_context,
)
assert 's****io@somosbeta.com.br' == r['body']['email']
body = json.loads(r['body'])
assert 's***io@somosbeta.com.br' == body['email']
app.lambda_handler(
http_api_proxy(
@@ -34,4 +36,4 @@ def test_forgot(
forgot = dynamodb_persistence_layer.collection.query(
PartitionKey('PASSWORD_RESET'),
)
assert len(forgot['items']) == 3
assert len(forgot['items']) == 5