Refactor the initial setting bootstrap code
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -12,7 +12,7 @@ DOCUMENT_PARSING_AUTO_PARSING = False
|
||||
|
||||
FILE_METADATA_AUTO_PROCESS = False
|
||||
|
||||
INSTALLED_APPS += ('test_without_migrations',)
|
||||
INSTALLED_APPS += ('test_without_migrations',) # NOQA: F405
|
||||
|
||||
INSTALLED_APPS = [
|
||||
cls for cls in INSTALLED_APPS if cls != 'whitenoise.runserver_nostatic'
|
||||
@@ -21,7 +21,7 @@ INSTALLED_APPS = [
|
||||
# Remove whitenoise from middlewares. Causes out of memory errors during test
|
||||
# suit
|
||||
MIDDLEWARE = [
|
||||
cls for cls in MIDDLEWARE if cls != 'whitenoise.middleware.WhiteNoiseMiddleware'
|
||||
cls for cls in MIDDLEWARE if cls != 'whitenoise.middleware.WhiteNoiseMiddleware' # NOQA: F405
|
||||
]
|
||||
|
||||
# Remove middlewares not used for tests
|
||||
@@ -48,7 +48,7 @@ PASSWORD_HASHERS = (
|
||||
STATICFILES_STORAGE = None
|
||||
|
||||
# Cache templates in memory
|
||||
TEMPLATES[0]['OPTIONS']['loaders'] = (
|
||||
TEMPLATES[0]['OPTIONS']['loaders'] = ( # NOQA: F405
|
||||
(
|
||||
'django.template.loaders.cached.Loader', (
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
|
||||
Reference in New Issue
Block a user