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