Fixed #21977 -- Deprecated SimpleTestCase.urls

This commit is contained in:
Anubhav Joshi 2014-04-05 11:34:46 +05:30 committed by Tim Graham
parent d2f4553d70
commit cd914e31c9
73 changed files with 337 additions and 295 deletions

View file

@ -10,7 +10,7 @@ except ImportError:
from django.contrib.syndication import views
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test import TestCase, override_settings
from django.test.utils import requires_tz_support
from django.utils.feedgenerator import rfc2822_date, rfc3339_date
from django.utils import timezone
@ -50,11 +50,11 @@ class FeedTestCase(TestCase):
######################################
@override_settings(ROOT_URLCONF='syndication_tests.urls')
class SyndicationFeedTest(FeedTestCase):
"""
Tests for the high-level syndication feed framework.
"""
urls = 'syndication_tests.urls'
def test_rss2_feed(self):
"""