You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would love ideas on what a testing utility could look like. Lambda Context would be a quick one, but interested to hear your thoughts on how other events could look like, and what else could be helpful (and their UX more or less).
Thank you @heitorlessa, this looks great! The Lambda context would be a brilliant first step for me - but I'm also going to have a think about event handlers for SQS and SNS which would also be useful.
I'm going to close this issue as it's on the roadmap - thanks very much for your reply.
Is your feature request related to a problem? Please describe.
We test our Lambdas with pytest and do something like this:
When integrating this project we discovered that we'd have to set up a LambdaContext object and pass that in.
Describe the solution you'd like
It would be great if this library provided a context-like object that we could use in our tests
However the
LambdaContext
object (which is provided for IDE type hints) doesn't allow properties to be set.Describe alternatives you've considered
We've used this snippet of code:
from here but it would be lovely to have this built-in to the library.
The text was updated successfully, but these errors were encountered: