Skip to content

Commit

Permalink
tests: RabbitMQ as a default BROKER_URL
Browse files Browse the repository at this point in the history
* 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 authored and jirikuncar committed Sep 15, 2016
1 parent 39d5f33 commit 2685744
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 2685744

Please sign in to comment.