File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 66def lambda_handler (event , context ):
77 return {
88 "statusCode" : 200 ,
9- "body" : f"Hello from a sample Python Lambda! Payload: { PAYLOAD } " ,
9+ "body" : f"Hello from a sample Python Lambda Function ! Payload: { PAYLOAD } " ,
1010 }
Original file line number Diff line number Diff line change 66def test_primary_handler ():
77 result = app .lambda_handler (None , None )
88 assert result ["statusCode" ] == 200
9- assert result ["body" ] == "Hello from a sample Python Lambda! Payload: None"
9+ assert result ["body" ] == "Hello from a sample Python Lambda Function ! Payload: None"
1010
1111
1212def test_primary_handler_with_payload ():
1313 with patch .object (app , "PAYLOAD" , "test_payload" ):
1414 result = app .lambda_handler (None , None )
1515 assert result ["statusCode" ] == 200
1616 assert (
17- result ["body" ] == "Hello from a sample Python Lambda! Payload: test_payload"
17+ result ["body" ]
18+ == "Hello from a sample Python Lambda Function! Payload: test_payload"
1819 )
You can’t perform that action at this time.
0 commit comments