def test_func_multi_trigger(logger, **kwargs): return [ Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={}), Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={}), Payload( queue=Queue( name=config("TEST_KINESIS_STREAM"), type=QueueType.KINESIS, path="TEST_FUNC", ), kwargs={"foo": "bar"}, ), ]
def test_func_trigger_error(logger, **kwargs): return Payload(path=Path.TEST_RAISE, kwargs={})
def return_payload_throw_custom_exception_continue(**kwargs): return Payload(path=Path.TEST_RAISE_CUSTOM_CONTINUE, kwargs={})
def test_func_trigger_first(logger, **kwargs): return Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={})
def return_payload_throw_custom_exception(**kwargs): return Payload(path=Path.TEST_RAISE_CUSTOM, kwargs={})