From 2cd67d71d38a43b92ea04eeda9b6e7d40a88969d Mon Sep 17 00:00:00 2001 From: Alex Ley <91.alex.ley@gmail.com> Date: Mon, 30 Aug 2021 14:06:52 +0200 Subject: [PATCH] fix(handler.py): add option to run file as script for local testing --- handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler.py b/handler.py index 19d82a3..35a7f65 100644 --- a/handler.py +++ b/handler.py @@ -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)