from aws_lambda_powertools.utilities.typing import LambdaContext

import events.send_reminder_emails as app


def test_reminder_cert_expiration_before_30_days(
    seeds,
    lambda_context: LambdaContext,
):
    event = {
        'detail': {
            'old_image': {
                'id': '47ZxxcVBjvhDS5TE98tpfQ',
                'sk': 'SCHEDULE#REMINDER_CERT_EXPIRATION_BEFORE_30_DAYS',
            }
        }
    }
    app.send_email = lambda *args, **kwargs: ...

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