Exemple #1
0
    def assert_bad_request(self, params):
        function = MeArticlesDraftsPublish(params, {},
                                           dynamodb=self.dynamodb,
                                           elasticsearch=self.elasticsearch)
        response = function.main()

        self.assertEqual(response['statusCode'], 400)
Exemple #2
0
def lambda_handler(event, context):
    me_articles_drafts_publish = MeArticlesDraftsPublish(event, context, dynamodb)
    return me_articles_drafts_publish.main()