mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +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
|
@ -735,11 +735,11 @@ class TestCollectionLinks(CollectionTestCase, TestDefaults):
|
|||
self.assertTrue(os.path.islink(path))
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='staticfiles_tests.urls.default')
|
||||
class TestServeStatic(StaticFilesTestCase):
|
||||
"""
|
||||
Test static asset serving view.
|
||||
"""
|
||||
urls = 'staticfiles_tests.urls.default'
|
||||
|
||||
def _response(self, filepath):
|
||||
return self.client.get(
|
||||
|
@ -771,11 +771,11 @@ class TestServeStaticWithDefaultURL(TestServeStatic, TestDefaults):
|
|||
pass
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='staticfiles_tests.urls.helper')
|
||||
class TestServeStaticWithURLHelper(TestServeStatic, TestDefaults):
|
||||
"""
|
||||
Test static asset serving view with staticfiles_urlpatterns helper.
|
||||
"""
|
||||
urls = 'staticfiles_tests.urls.helper'
|
||||
|
||||
|
||||
class TestServeAdminMedia(TestServeStatic):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue