FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support for direct calls to execute lambda functions and return their output (for py.tests) by random-element · Pull Request #35 · HDE/python-lambda-local · GitHub

Support for direct calls to execute lambda functions and return their output (for py.tests) - #35

Merged
freedomofkeima merged 3 commits into
HDE:masterfrom
random-element:direct_calls
Oct 23, 2018
Merged

Support for direct calls to execute lambda functions and return their output (for py.tests)#35
freedomofkeima merged 3 commits into
HDE:masterfrom
random-element:direct_calls

Conversation

Copy link
Copy Markdown
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).

yxd-hde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for your patch. LGTM.

freedomofkeima merged commit c6aae27 into HDE:master Oct 23, 2018

Copy link
Copy Markdown
Collaborator

Related PR: #41

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL