Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tests now passing again.

  • Loading branch information...
commit 79a815d8b652474ae4888d850773437212da04db 1 parent b997b12
Ask Solem authored
Showing with 7 additions and 6 deletions.
  1. +3 −3 carrot/messaging.py
  2. +4 −3 tests/backend.py
View
6 carrot/messaging.py
@@ -664,9 +664,9 @@ def declare(self):
"""
self.backend.exchange_declare(exchange=self.exchange,
- type=self.exchange_type,
- durable=self.durable,
- auto_delete=self.auto_delete)
+ type=self.exchange_type,
+ durable=self.durable,
+ auto_delete=self.auto_delete)
def __enter__(self):
return self
View
7 tests/backend.py
@@ -39,7 +39,7 @@ def setUp(self):
def create_consumer(self, **options):
queue = "%s%s" % (self.queue, self.nextq())
return Consumer(connection=self.conn,
- queue=queue, exchange=self.exchange + str(self.nextq),
+ queue=queue, exchange=self.exchange,
routing_key=self.routing_key, **options)
def create_consumerset(self, queues={}, consumers=[], **options):
@@ -54,11 +54,12 @@ def create_publisher(self, exchange=None, routing_key=None, **options):
**options)
def test_regression_implied_auto_delete(self):
- consumer = self.create_consumer(exclusive=True)
+ consumer = self.create_consumer(exclusive=True, auto_declare=False)
self.assertTrue(consumer.auto_delete, "exclusive implies auto_delete")
consumer.close()
- consumer = self.create_consumer(durable=True, auto_delete=False)
+ consumer = self.create_consumer(durable=True, auto_delete=False,
+ auto_declare=False)
self.assertFalse(consumer.auto_delete,
"""durable does *not* imply auto_delete.
regression: http://github.com/ask/carrot/issues/closed#issue/2""")
Please sign in to comment.
Something went wrong with that request. Please try again.