add subscription test

This commit is contained in:
2026-01-16 19:47:41 -03:00
parent f593b21a73
commit 753c4be4da
8 changed files with 142 additions and 23 deletions

View File

@@ -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')