mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +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
|
|
@ -3,16 +3,16 @@ from __future__ import unicode_literals
|
|||
from django.core.urlresolvers import NoReverseMatch
|
||||
from django.contrib.auth.views import logout
|
||||
from django.shortcuts import resolve_url
|
||||
from django.test import TestCase
|
||||
from django.test import TestCase, override_settings
|
||||
|
||||
from .models import UnimportantThing
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='resolve_url.urls')
|
||||
class ResolveUrlTests(TestCase):
|
||||
"""
|
||||
Tests for the ``resolve_url`` function.
|
||||
"""
|
||||
urls = 'resolve_url.urls'
|
||||
|
||||
def test_url_path(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue