File: 0001-Add-the-recommended-minimum-MIDDLEWARE_CLASSES.patch

package info (click to toggle)
celery-haystack 0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 196 kB
  • sloc: python: 321; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
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