Running tests raises exceptions without fake context
evbots opened this issue · comments
Evan Botello commented
Running a handler in a test environment raises exceptions. Just FYI that mocking aws context is required. Maybe that is obvious? Feel free to close if there is no other way around this.
@wraps(handler)
def wrapper(event, context):
> if context.aws_request_id in seen_request_ids:
E AttributeError: 'dict' object has no attribute 'aws_request_id'
Evan Botello commented
This is obvious to me now as required. maybe at some point a test helpers library could be included in this package for things like this.