def setUp(self): super(TestKombuPatch, self).setUp() conn = kombu.Connection( 'amqp://*****:*****@127.0.0.1:{p}//'.format(p=self.TEST_PORT)) conn.connect() producer = conn.Producer() Pin.override(producer, service=self.TEST_SERVICE, tracer=self.tracer) self.conn = conn self.producer = producer patch()
def setUp(self): super(TestKombuSettings, self).setUp() conn = kombu.Connection('amqp://*****:*****@127.0.0.1:{p}//'.format( p=RABBITMQ_CONFIG['port'])) conn.connect() producer = conn.Producer() Pin.override(producer, tracer=self.tracer) self.conn = conn self.producer = producer patch()
def setUp(self): conn = kombu.Connection( "amqp://*****:*****@127.0.0.1:{p}//".format(p=self.TEST_PORT)) conn.connect() patch()