1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Michael Fladischer <fladi@debian.org>
Date: Fri, 25 Dec 2015 15:02:58 +0100
Subject: Add the recommended minimum MIDDLEWARE_CLASSES.
This silences warnings while running the tests.
Forwarded: no
Last-Update: 2015-08-11
---
celery_haystack/test_settings.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/celery_haystack/test_settings.py b/celery_haystack/test_settings.py
index def8536..b14c0d7 100644
--- a/celery_haystack/test_settings.py
+++ b/celery_haystack/test_settings.py
@@ -26,6 +26,10 @@ DATABASES = {
SECRET_KEY = 'really-not-secret'
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+)
+
BROKER_TRANSPORT = "memory"
CELERY_ALWAYS_EAGER = True
CELERY_IGNORE_RESULT = True
|