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/conditional_processing | |
| parent | d2f4553d705951ca8043d687f9493c559f494a0c (diff) | |
Fixed #21977 -- Deprecated SimpleTestCase.urls
Diffstat (limited to 'tests/conditional_processing')
| -rw-r--r-- | tests/conditional_processing/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conditional_processing/tests.py b/tests/conditional_processing/tests.py index 2c832e527c..162a405d91 100644 --- a/tests/conditional_processing/tests.py +++ b/tests/conditional_processing/tests.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from datetime import datetime -from django.test import TestCase +from django.test import TestCase, override_settings FULL_RESPONSE = 'Test conditional get response' @@ -16,8 +16,8 @@ ETAG = 'b4246ffc4f62314ca13147c9d4f76974' EXPIRED_ETAG = '7fae4cd4b0f81e7d2914700043aa8ed6' +@override_settings(ROOT_URLCONF='conditional_processing.urls') class ConditionalGet(TestCase): - urls = 'conditional_processing.urls' def assertFullResponse(self, response, check_last_modified=True, check_etag=True): self.assertEqual(response.status_code, 200) |
