Skip to content

Commit

Permalink
tests: RabbitMQ as a default BROKER_URL for tests
Browse files Browse the repository at this point in the history
* FIX Fixes tests by using rabbitmq instead of in memory queue.
  (closes #40)

Signed-off-by: Nicolas Harraudeau <nicolas.harraudeau@cern.ch>
  • Loading branch information
Nicolas Harraudeau committed Sep 7, 2016
1 parent a2a35c0 commit fdd9be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def app(request):
instance_path = tempfile.mkdtemp()
app = Flask('testapp', instance_path=instance_path)
app.config.update(
BROKER_URL=os.environ.get('BROKER_URL', 'memory://'),
BROKER_URL=os.environ.get('BROKER_URL',
'amqp://guest:guest@localhost:5672//'),
CELERY_ALWAYS_EAGER=True,
CELERY_CACHE_BACKEND="memory",
CELERY_EAGER_PROPAGATES_EXCEPTIONS=True,
Expand Down

0 comments on commit fdd9be2

Please sign in to comment.