コード例 #1
0
ファイル: app_base.py プロジェクト: rbramwell/streamalert
 def __init__(self, event, context):
     self._config = AppConfig.load_config(event, context)
     self._batcher = Batcher(self._config.function_name, self._config.destination_function)
     self._gathered_log_count = 0
     self._more_to_poll = False
     self._poll_count = 0
     self._last_timestamp = 0
コード例 #2
0
    def setup(self):
        """Setup class before tests"""
        # pylint: disable=attribute-defined-outside-init
        self.batcher = Batcher('duo_auth', 'destination_func')

        # Use a mocked version of the Lambda client to patch out the instance client
        Batcher.LAMBDA_CLIENT = MockLambdaClient