Skip to content

Commit

Permalink
fix(handler.py): add option to run file as script for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-ley committed Aug 30, 2021
1 parent 92096df commit 2cd67d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ def report_cost(event, context):
else:
print(summary)
print(buffer)

if __name__ == "__main__":
# for running locally to test
report_cost(None, None)

0 comments on commit 2cd67d7

Please sign in to comment.