Fixed #14478 -- Isolated messages tests from custom TEMPLATE_CONTEXT_PROCESSORS

This commit is contained in:
Claude Paroz 2012-06-02 21:28:18 +02:00
parent 7676d6e764
commit 6522283a71
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
from django import http from django import http
from django.conf import settings from django.conf import settings, global_settings
from django.contrib.messages import constants, utils, get_level, set_level from django.contrib.messages import constants, utils, get_level, set_level
from django.contrib.messages.api import MessageFailure from django.contrib.messages.api import MessageFailure
from django.contrib.messages.storage import default_storage, base from django.contrib.messages.storage import default_storage, base
@ -57,6 +57,7 @@ class BaseTest(TestCase):
def setUp(self): def setUp(self):
self.settings_override = override_settings_tags( self.settings_override = override_settings_tags(
TEMPLATE_DIRS = (), TEMPLATE_DIRS = (),
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS,
MESSAGE_TAGS = '', MESSAGE_TAGS = '',
MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__, MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__,
self.storage_class.__name__), self.storage_class.__name__),