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
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
@@ -2007,9 +2007,9 @@ class TestWithTemplateResponse(TestCase):
|
||||
self.assertTrue(response.has_header('ETag'))
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF="admin_views.urls")
|
||||
class TestEtagWithAdmin(TestCase):
|
||||
# See https://code.djangoproject.com/ticket/16003
|
||||
urls = "admin_views.urls"
|
||||
|
||||
def test_admin(self):
|
||||
with self.settings(USE_ETAGS=False):
|
||||
|
||||
Reference in New Issue
Block a user