mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #21977 -- Deprecated SimpleTestCase.urls
This commit is contained in:
committed by
Tim Graham
parent
d2f4553d70
commit
cd914e31c9
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user