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