From cd914e31c9a889f18c50c15b4f6ee4959624001f Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Sat, 5 Apr 2014 11:34:46 +0530 Subject: Fixed #21977 -- Deprecated SimpleTestCase.urls --- tests/admin_scripts/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 90fd3520e2..43a1227ad8 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -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', -- cgit v1.3