def test_lambda_handler(apigw_event): ret = app.lambda_handler(apigw_event, "") assert ret['statusCode'] == 200 assert ret['body'] == json.dumps({'hello': 'world'})
def test_lambda_handler(lambda_event): ret = app.lambda_handler(lambda_event, "") assert ret == {'hello': 'world'}
def test_runs_on_aws_lambda(): ret = app.lambda_handler(lambda_event, "") assert ret == {'hello': 'world'}
def test_get_message(lambda_event, key, value): ret = app.lambda_handler(lambda_event, "") assert ret == {key: value}
def test_get_message(apigw_event, key, value): ret = app.lambda_handler(apigw_event, "") assert ret['statusCode'] == 200 assert ret['body'] == json.dumps({key: value})
def test_get_message(lambda_event, key, value): ret = app.lambda_handler(lambda_event, "") # assert ret == {'hello': 'world'} assert ret == {key: value}
def test_lambda_handler(apigw_event): ret = app.lambda_handler(apigw_event, "") assert ret['statusCode'] == 200 assert ret['body'] == json.dumps({'hello': 'world'})