| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The return value of the functions is returned so the test can check the output.
There was a problem hiding this comment.
Thanks for your patch. LGTM.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When writing py.tests for lambda functions that have a non-empty return, each test function should create a test event/context, execute the lambda with the event/context and then compare the output of the function with the expected output.
This is currently not possible with the package as the command-line is its only interface.
This PR adds the feature for py.test functions (or any other module for that matter) to execute the lambda locally, and get the output.