wip emails
This commit is contained in:
@@ -20,7 +20,29 @@ def test_get_emails(
|
||||
assert r['statusCode'] == HTTPStatus.OK
|
||||
|
||||
body = json.loads(r['body'])
|
||||
assert len(body['items']) == 1
|
||||
assert len(body['items']) == 2
|
||||
|
||||
|
||||
def test_email_as_primary(
|
||||
app,
|
||||
seeds,
|
||||
http_api_proxy: HttpApiProxy,
|
||||
lambda_context: LambdaContext,
|
||||
):
|
||||
r = app.lambda_handler(
|
||||
http_api_proxy(
|
||||
raw_path='/users/15bacf02-1535-4bee-9022-19d106fd7518/emails/primary',
|
||||
method=HTTPMethod.PATCH,
|
||||
body={
|
||||
'old_email': 'sergio@somosbeta.com.br',
|
||||
'new_email': 'osergiosiqueira@gmail.com',
|
||||
'email_verified': 'false',
|
||||
},
|
||||
),
|
||||
lambda_context,
|
||||
)
|
||||
|
||||
assert r['statusCode'] == HTTPStatus.NO_CONTENT
|
||||
|
||||
|
||||
def test_get_orgs(
|
||||
@@ -36,4 +58,5 @@ def test_get_orgs(
|
||||
),
|
||||
lambda_context,
|
||||
)
|
||||
|
||||
assert r['statusCode'] == HTTPStatus.OK
|
||||
|
||||
Reference in New Issue
Block a user