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