def assert_bad_request(self, params): function = ArticlesPopular(params, {}, dynamodb=self.dynamodb, elasticsearch=self.elasticsearch) response = function.main() self.assertEqual(response['statusCode'], 400)
def lambda_handler(event, context): articles_popular = ArticlesPopular(event, context, dynamodb) return articles_popular.main()
def lambda_handler(event, context): articles_popular = ArticlesPopular(event, context, dynamodb=dynamodb, elasticsearch=elasticsearch) return articles_popular.main()