From 30f88b6e3097bdaea4de339dd8d633dd89f42064 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 18 Feb 2016 09:51:32 -0500 Subject: [PATCH] Added redis in-memory fixture for functional tests --- awx/main/tests/functional/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/main/tests/functional/conftest.py b/awx/main/tests/functional/conftest.py index ad8c994a7d..7305b95799 100644 --- a/awx/main/tests/functional/conftest.py +++ b/awx/main/tests/functional/conftest.py @@ -130,3 +130,8 @@ def get(): middleware.process_response(request, response) return response return rf + +@pytest.fixture(scope="session", autouse=True) +def celery_memory_broker(): + from django.conf import settings + settings.BROKER_URL='memory://localhost/'