mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #21977 -- Deprecated SimpleTestCase.urls
This commit is contained in:
committed by
Tim Graham
parent
d2f4553d70
commit
cd914e31c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user