Move whitenoise test disabling to base.py. Disable the whitenoise runserver app. Disable Manifest static storage.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-05-25 03:22:17 -04:00
parent bf51ad3c8d
commit 2a3d4eedc8
2 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1 @@
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'
]

View File

@@ -3,6 +3,7 @@ from __future__ import absolute_import, unicode_literals
from .. import * # NOQA
INSTALLED_APPS += ('test_without_migrations',)
INSTALLED_APPS -= ('whitenoise.runserver_nostatic',)
COMMON_PRODUCTION_ERROR_LOG_PATH = '/tmp/mayan-errors.log'
@@ -10,3 +11,11 @@ TEMPLATES[0]['OPTIONS']['loaders'] = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
# 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'
]
STATICFILES_STORAGE = None