"""Fixtures for lambda testing.""" import boto3 import pytest @pytest.fixture() def invoke_create_subscription_lambda(): """Invoke the create-subscription lambda function.""" client = boto3.client('lambda') return client.invoke( FunctionName='lambda-create-subscription', InvocationType='RequestResponse', LogType='None', Payload=b'', )