from aws_lambda_powertools.utilities.typing import LambdaContext

import events.enroll as app


def test_enroll(
    seeds,
    lambda_context: LambdaContext,
):
    event = {
        'detail': {
            'new_image': {
                'id': '03ad39c6-055e-48d8-acc8-e11385ed8904',
                'sk': 'konviva',
                'class_id': 275,
                'user_id': 26943,
            }
        }
    }

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