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
|
@ -27,9 +27,8 @@ MEDIA_ROOT = sys_tempfile.mkdtemp()
|
|||
UPLOAD_TO = os.path.join(MEDIA_ROOT, 'test_upload')
|
||||
|
||||
|
||||
@override_settings(MEDIA_ROOT=MEDIA_ROOT)
|
||||
@override_settings(MEDIA_ROOT=MEDIA_ROOT, ROOT_URLCONF='file_uploads.urls')
|
||||
class FileUploadTests(TestCase):
|
||||
urls = 'file_uploads.urls'
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue