json scheme

This commit is contained in:
2025-03-20 21:34:29 -03:00
parent 1f19380f5c
commit 76277d17b9
2 changed files with 15 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
import auth as app
from .conftest import LambdaContext
def test_bearer_jwt(lambda_context):
def test_bearer_jwt(lambda_context: LambdaContext):
app.get_user = lambda *args, **kwargs: {
'sub': '58efed8d-d276-41a8-8502-4ab8b5a6415e',
'name': 'pytest',
@@ -13,7 +15,7 @@ def test_bearer_jwt(lambda_context):
},
}
assert app.lambda_handler(event, lambda_context) == { # type: ignore
assert app.lambda_handler(event, lambda_context) == {
'isAuthorized': True,
'context': {
'user': {