Skip to content

Conversation

random-element
Copy link
Contributor

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.

  • Refactored to maximize reuse code.
  • Added test to test new functionality (and ensure existing code works as expected).

Copy link
Contributor

@yxd-hde yxd-hde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patch. LGTM.

@freedomofkeima freedomofkeima merged commit c6aae27 into HDE:master Oct 23, 2018
@freedomofkeima
Copy link
Collaborator

Related PR: #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants