from aws_lambda_powertools.utilities.typing import LambdaContext

import events.update_user as app


def test_update_user(lambda_context: LambdaContext):
    event = {
        'detail': {
            'new_image': {
                'name': 'Sérgio Rafael Siqueira',
                'metadata__konviva_user_id': 26943,
            },
            'changes': ['name'],
        },
    }

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