AWS Lambda unit testing – DEV Community

Unit testing computational AWS Lambda Think about a lambda handler retrieving two values from an occasion and returns the sum. (no interplay with different AWS Companies). def lambda_handler(occasion, context): end result = int(occasion[‘first_number’]) + int(occasion[‘second_number’]) return { ‘sum’ : end result } Enter fullscreen mode Exit fullscreen mode Under is one choice of unit testing […]