Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
 def setUp(self):
     conn = kombu.Connection(
         "amqp://*****:*****@127.0.0.1:{p}//".format(p=self.TEST_PORT))
     conn.connect()
     patch()