mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Fixed #21977 -- Deprecated SimpleTestCase.urls
This commit is contained in:
parent
d2f4553d70
commit
cd914e31c9
73 changed files with 337 additions and 295 deletions
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue