add subscription test
This commit is contained in:
@@ -3,7 +3,6 @@ from typing import Annotated
|
||||
from uuid import uuid4
|
||||
|
||||
from aws_lambda_powertools.event_handler.api_gateway import Router
|
||||
from aws_lambda_powertools.event_handler.exceptions import NotFoundError
|
||||
from aws_lambda_powertools.event_handler.openapi.params import Body
|
||||
from layercake.dateutils import now, ttl
|
||||
from layercake.dynamodb import DynamoDBPersistenceLayer, KeyPair, SortKey
|
||||
@@ -16,6 +15,7 @@ from config import INTERNAL_EMAIL_DOMAIN, USER_TABLE
|
||||
from exceptions import (
|
||||
CPFConflictError,
|
||||
EmailConflictError,
|
||||
OrgNotFoundError,
|
||||
UserConflictError,
|
||||
UserNotFoundError,
|
||||
)
|
||||
@@ -37,7 +37,7 @@ class User(BaseModel):
|
||||
email: EmailStr
|
||||
|
||||
|
||||
class OrgNotFoundError(NotFoundError): ...
|
||||
# class OrgNotFoundError(NotFoundError): ...
|
||||
|
||||
|
||||
@router.post('/<org_id>/users')
|
||||
|
||||
Reference in New Issue
Block a user