"""Fixtures for lambda testing.""" import boto3 import pytest from mypy_boto3_lambda.type_defs import InvocationResponseTypeDef import config @pytest.fixture() def invoke_lambda() -> InvocationResponseTypeDef: """Invoke the lambda function.""" client = boto3.client('lambda') return client.invoke( FunctionName=config.LAMBDA_NAME, InvocationType='RequestResponse', LogType='None', Payload=b'', )