Remove whitenoise from middlewares during test suit as it causes out of memory errors.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-05-24 23:35:11 -04:00
parent 1ea684737a
commit e4af58d4b7

View File

@@ -1 +1,7 @@
from .base import * # NOQA
# Remove whitenoise from middlewares. Causes out of memory errors during test
# suit
MIDDLEWARE_CLASSES = [
cls for cls in MIDDLEWARE_CLASSES if cls !='whitenoise.middleware.WhiteNoiseMiddleware'
]