mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -8,9 +8,9 @@ from django.utils.encoding import force_str
|
|||
from .models import Author, Artist
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='generic_views.urls')
|
||||
class ListViewTests(TestCase):
|
||||
fixtures = ['generic-views-test-data.json']
|
||||
urls = 'generic_views.urls'
|
||||
|
||||
def test_items(self):
|
||||
res = self.client.get('/list/dict/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue