Ticket #17848: 17848-1.diff

File 17848-1.diff, 1.1 KB (added by Ryan Kaskel, 12 years ago)

just clear the cache again after the test

  • django/contrib/auth/tests/context_processors.py

    diff --git a/django/contrib/auth/tests/context_processors.py b/django/contrib/auth/tests/context_processors.py
    index 8f77940..0eb5e5e 100644
    a b class AuthContextProcessorTests(TestCase):  
    2929        response = self.client.get('/auth_processor_no_attr_access/')
    3030        self.assertContains(response, "Session not accessed")
    3131
     32        context._standard_context_processors = None
     33
    3234    @override_settings(
    3335        MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES,
    3436        TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PROCESSORS,
    class AuthContextProcessorTests(TestCase):  
    4345        response = self.client.get('/auth_processor_attr_access/')
    4446        self.assertContains(response, "Session accessed")
    4547
     48        context._standard_context_processors = None
     49
    4650    def test_perms_attrs(self):
    4751        self.client.login(username='super', password='secret')
    4852        response = self.client.get('/auth_processor_perms/')
Back to Top