update t p

This commit is contained in:
2025-09-17 22:27:01 -03:00
parent a7a7cc6cc1
commit 0e6a503ee4
8 changed files with 51 additions and 17 deletions

View File

@@ -53,14 +53,14 @@ def test_authorize(
assert len(r['items']) == 3
def test_unauthorized(
def test_forbidden(
app,
seeds,
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
session_id = new_session(USER_ID)
session_id = new_session('fd5914ec-fd37-458b-b6b9-8aeab38b666b')
r = app.lambda_handler(
http_api_proxy(
@@ -81,7 +81,7 @@ def test_unauthorized(
lambda_context,
)
assert r['statusCode'] == HTTPStatus.UNAUTHORIZED
assert r['statusCode'] == HTTPStatus.FORBIDDEN
def test_authorize_revoked(