def setUp(self): self.engine = engine(name="passdropity", logging_level=WARNING) self.engine.next_amqp_queues = ["consolidation"] self.engine.drop_event_count = 0 self.engine.pass_event_count = 0 self.engine.configuration = conf
def setUp(self): self.engine = engine( **{'name': 'passdropity', 'logging_level': INFO}) self.engine.next_amqp_queues = ["consolidation"] self.engine.drop_event_count = 0 self.engine.pass_event_count = 0 self.engine.configuration = conf
def setUp(self): # Initializing logging_level to WARNING prevents 'Engine initialized' # INFO to be printed self.engine = engine(name="overrider", logging_level=WARNING) self.engine.logger.propagate = False # Thoose events with minimal fields are shortcuts for test_* methods self.event = {"connector": "", "connector_name": "", "event_type": "", "source_type": "", "component": ""} self.expected_event = copy(self.event)
def setUp(self): self.engine = engine( name='passdropity', logging_level=WARNING, ) self.engine.next_amqp_queues = ["consolidation"] self.engine.drop_event_count = 0 self.engine.pass_event_count = 0 self.engine.configuration = conf
def setUp(self): # Initializing logging_level to WARNING prevents 'Engine initialized' # INFO to be printed self.engine = engine(name='overrider', logging_level=WARNING) self.engine.logger.propagate = False # Thoose events with minimal fields are shortcuts for test_* methods self.event = { 'connector': '', 'connector_name': '', 'event_type': '', 'source_type': '', 'component': '', } self.expected_event = copy(self.event)