From 2f2c5d5b098f7de37d3f5f2489116feabb2970fd Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 22 Dec 2016 03:37:36 -0400 Subject: [PATCH] Make tests import from local setting to inherit the user's overrides. Force tests to enable the DEBUG variable. --- mayan/settings/testing/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mayan/settings/testing/base.py b/mayan/settings/testing/base.py index 20e0329014..663ff4fb9b 100644 --- a/mayan/settings/testing/base.py +++ b/mayan/settings/testing/base.py @@ -1,9 +1,10 @@ from __future__ import absolute_import, unicode_literals -from ..base import * # NOQA +from .. import * # NOQA +DEBUG = True INSTALLED_APPS += ('test_without_migrations',) -TEMPLATE_LOADERS = ( +TEMPLATES[0]['OPTIONS']['loaders'] = ( 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader' + 'django.template.loaders.app_directories.Loader', )