Exemplo n.º 1
0
 def __init__(self, event, context=None):
     self._create_tmp_dirs()
     # Parse the event_info data
     self.parsed_event = parse_event(event)
     self._read_storage_variables()
     # Create the supervisor
     self.supervisor = _create_supervisor(event, context)
Exemplo n.º 2
0
 def __init__(self, event, context=None):
     self._create_tmp_dirs()
     # Parse the event_info data
     self.parsed_event = parse_event(event)
     # Read storage config
     self._read_storage_config()
     self.inputs = event
     # Create the supervisor
     self.supervisor = _create_supervisor(event, context)
Exemplo n.º 3
0
 def test_parse_event_storage(self):
     result = events.parse_event(S3_EVENT)
     self.assertIsInstance(result, S3Event)
Exemplo n.º 4
0
 def test_parse_event_apigateway_w_json_body(self):
     result = events.parse_event(APIGTW_EVENT_W_JSON)
     self.assertIsInstance(result, S3Event)
Exemplo n.º 5
0
 def test_parse_event_unknown(self):
     result = events.parse_event(UNKNOWN_EVENT)
     self.assertIsInstance(result, UnknownEvent)