def __init__(self, region_name, queue_name): self._sqs_handler = SqsHandler(region_name, queue_name) self._s3_handler = S3Handler() self._results_uploader = []
def s3_handler(self): with patch('amira.s3.boto3') as mock_boto3: handler = S3Handler() mock_boto3.client.assert_called_once_with('s3') yield handler
def s3_handler(self): boto.connect_s3 = MagicMock() return S3Handler()
def __init__(self, region_name, queue_name): self._sqs_handler = SqsHandler(region_name, queue_name) self._s3_handler = S3Handler() self._results_uploader = [] self._data_feeds = {} self._data_processor = OSXCollectorDataProcessor()