add forgot login
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user