Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import pytest
from lambda_function import *
import base64
import json
def kinesis_test_event():
kinesis_event = {
"Records": [
"kinesis": {
base64.b64encode(json.dumps({'artist': 'Lana Del Rey', 'track': 'Brooklyn Baby'}))
return kinesis_event
def test_lambda_handler(kinesis_test_event):
response = lambda_handler(kinesis_test_event, {})
except Exception as e:
assert True == True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment