from aws_lambda_powertools.utilities.typing import LambdaContext

import events.create_user as app


def test_create_user(dynamodb_client, dynamodb_seeds, lambda_context: LambdaContext):
    event = {
        'detail': {
            'new_image': {
                'id': '123',
                'sk': '0',
                'name': 'Sérgio R Siqueira',
                'email': 'sergio@somosbeta.com.br',
                'cpf': '07879819908',
            }
        }
    }

    assert app.lambda_handler(event, lambda_context)  # type: ignore
