mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -26,7 +26,7 @@ from django.db import connection
|
|||
from django.utils.encoding import force_text
|
||||
from django.utils._os import npath, upath
|
||||
from django.utils.six import StringIO
|
||||
from django.test import LiveServerTestCase, TestCase
|
||||
from django.test import LiveServerTestCase, TestCase, override_settings
|
||||
from django.test.runner import DiscoverRunner
|
||||
from django.test.utils import str_prefix
|
||||
|
||||
|
@ -1631,9 +1631,9 @@ class ArgumentOrder(AdminScriptTestCase):
|
|||
self.assertOutput(out, str_prefix("EXECUTE:BaseCommand labels=('testlabel',), options=[('no_color', False), ('option_a', 'x'), ('option_b', %%s), ('option_c', '3'), ('pythonpath', None), ('settings', 'alternate_settings'), ('traceback', None), ('verbosity', %(_)s'1')]") % option_b)
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='admin_scripts.urls')
|
||||
class StartProject(LiveServerTestCase, AdminScriptTestCase):
|
||||
|
||||
urls = 'admin_scripts.urls'
|
||||
available_apps = [
|
||||
'admin_scripts',
|
||||
'django.contrib.auth',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue