update t p
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user