mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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
|
|
@ -1,10 +1,10 @@
|
|||
from django.test import TestCase
|
||||
from django.test import TestCase, override_settings
|
||||
|
||||
from .models import Guitarist
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='model_permalink.urls')
|
||||
class PermalinkTests(TestCase):
|
||||
urls = 'model_permalink.urls'
|
||||
|
||||
def test_permalink(self):
|
||||
g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue