diff options
author | Anubhav Joshi <anubhav9042@gmail.com> | 2014-04-05 11:34:46 +0530 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-04-06 17:33:43 -0400 |
commit | cd914e31c9a889f18c50c15b4f6ee4959624001f (patch) | |
tree | 291036036473baaf6de621f66a6198ed4bc12451 /tests/admin_custom_urls | |
parent | d2f4553d705951ca8043d687f9493c559f494a0c (diff) | |
download | django-cd914e31c9a889f18c50c15b4f6ee4959624001f.tar.gz |
Fixed #21977 -- Deprecated SimpleTestCase.urls
Diffstat (limited to 'tests/admin_custom_urls')
-rw-r--r-- | tests/admin_custom_urls/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index 7f098b049b..f804036158 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -8,7 +8,8 @@ from django.test import TestCase, override_settings from .models import Action, Person, Car -@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) +@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',), + ROOT_URLCONF='admin_custom_urls.urls',) class AdminCustomUrlsTest(TestCase): """ Remember that: @@ -16,7 +17,6 @@ class AdminCustomUrlsTest(TestCase): * The ModelAdmin for Action customizes the add_view URL, it's '<app name>/<model name>/!add/' """ - urls = 'admin_custom_urls.urls' fixtures = ['users.json', 'actions.json'] def setUp(self): @@ -83,9 +83,9 @@ class AdminCustomUrlsTest(TestCase): self.assertContains(response, 'value="path/to/html/document.html"') -@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) +@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',), + ROOT_URLCONF='admin_custom_urls.urls',) class CustomRedirects(TestCase): - urls = 'admin_custom_urls.urls' fixtures = ['users.json', 'actions.json'] def setUp(self): |