def assert_bad_request(self, params):
        function = ArticlesPopular(params, {},
                                   dynamodb=self.dynamodb,
                                   elasticsearch=self.elasticsearch)
        response = function.main()

        self.assertEqual(response['statusCode'], 400)
예제 #2
0
def lambda_handler(event, context):
    articles_popular = ArticlesPopular(event, context, dynamodb)
    return articles_popular.main()
예제 #3
0
def lambda_handler(event, context):
    articles_popular = ArticlesPopular(event, context, dynamodb=dynamodb, elasticsearch=elasticsearch)
    return articles_popular.main()