summaryrefslogtreecommitdiff
path: root/tests/context_processors/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/context_processors/tests.py')
-rw-r--r--tests/context_processors/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/context_processors/tests.py b/tests/context_processors/tests.py
index cfac38bfdc..98342f28c2 100644
--- a/tests/context_processors/tests.py
+++ b/tests/context_processors/tests.py
@@ -1,16 +1,15 @@
"""
Tests for Django's bundled context processors.
"""
-from django.test import TestCase
+from django.test import TestCase, override_settings
+@override_settings(ROOT_URLCONF='context_processors.urls')
class RequestContextProcessorTests(TestCase):
"""
Tests for the ``django.core.context_processors.request`` processor.
"""
- urls = 'context_processors.urls'
-
def test_request_attributes(self):
"""
Test that the request object is available in the template and that its