Esempio n. 1
0
    def assert_bad_request(self, params):
        function = ArticlesRecent(params, {},
                                  dynamodb=self.dynamodb,
                                  elasticsearch=self.elasticsearch)
        response = function.main()

        self.assertEqual(response['statusCode'], 400)
Esempio n. 2
0
def lambda_handler(event, context):
    articles_recent = ArticlesRecent(event, context, dynamodb=dynamodb, elasticsearch=elasticsearch)
    return articles_recent.main()
Esempio n. 3
0
def lambda_handler(event, context):
    articles_recent = ArticlesRecent(event, context, dynamodb)
    return articles_recent.main()