Fixed #21977 -- Deprecated SimpleTestCase.urls

This commit is contained in:
Anubhav Joshi 2014-04-05 11:34:46 +05:30 committed by Tim Graham
parent d2f4553d70
commit cd914e31c9
73 changed files with 337 additions and 295 deletions

View file

@ -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/')