mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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
|
@ -101,8 +101,8 @@ class BadExceptionMiddleware(TestMiddleware):
|
|||
raise TestException('Test Exception Exception')
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='middleware_exceptions.urls')
|
||||
class BaseMiddlewareExceptionTest(TestCase):
|
||||
urls = 'middleware_exceptions.urls'
|
||||
|
||||
def setUp(self):
|
||||
self.exceptions = []
|
||||
|
@ -779,8 +779,8 @@ class BadMiddlewareTests(BaseMiddlewareExceptionTest):
|
|||
_missing = object()
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='middleware_exceptions.urls')
|
||||
class RootUrlconfTests(TestCase):
|
||||
urls = 'middleware_exceptions.urls'
|
||||
|
||||
@override_settings(ROOT_URLCONF=None)
|
||||
def test_missing_root_urlconf(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue