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/handlers/tests.py | |
parent | d2f4553d705951ca8043d687f9493c559f494a0c (diff) | |
download | django-cd914e31c9a889f18c50c15b4f6ee4959624001f.tar.gz |
Fixed #21977 -- Deprecated SimpleTestCase.urls
Diffstat (limited to 'tests/handlers/tests.py')
-rw-r--r-- | tests/handlers/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py index ae8b9529f5..b36d8dbfdd 100644 --- a/tests/handlers/tests.py +++ b/tests/handlers/tests.py @@ -65,10 +65,10 @@ class HandlerTests(TestCase): self.assertEqual(request.COOKIES['want'], force_str("café")) +@override_settings(ROOT_URLCONF='handlers.urls') class TransactionsPerRequestTests(TransactionTestCase): available_apps = [] - urls = 'handlers.urls' def test_no_transaction(self): response = self.client.get('/in_transaction/') @@ -93,8 +93,8 @@ class TransactionsPerRequestTests(TransactionTestCase): self.assertContains(response, 'False') +@override_settings(ROOT_URLCONF='handlers.urls') class SignalsTests(TestCase): - urls = 'handlers.urls' def setUp(self): self.signals = [] @@ -123,8 +123,8 @@ class SignalsTests(TestCase): self.assertEqual(self.signals, ['started', 'finished']) +@override_settings(ROOT_URLCONF='handlers.urls') class HandlerSuspiciousOpsTest(TestCase): - urls = 'handlers.urls' def test_suspiciousop_in_view_returns_400(self): response = self.client.get('/suspicious/') |