<How to mock response for request.get object in AW...
# stackoverflow
r
How to mock response for request.get object in AWS Lambda deployed through localstack for local testing purpose As per requirement I am doing the lambda testing locally using the LocalStack. I could able to deploy and invoke the lambda using localstack. But I get an error in the lambda handler code, as my code is accessing some external link through requests.get() module. I have mocked those external link locally using wiremock, So If I try to access those link on terminal, I can get the response, but I gets below error when its getting called from Lambda which was invoked by Localstack. Error:...