summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/syndication_tests
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/urls.py40
1 files changed, 21 insertions, 19 deletions
diff --git a/tests/syndication_tests/urls.py b/tests/syndication_tests/urls.py
index 09f7e789cd..d23c33e21b 100644
--- a/tests/syndication_tests/urls.py
+++ b/tests/syndication_tests/urls.py
@@ -1,26 +1,28 @@
-from django.conf.urls import url
+from django.urls import path
from . import feeds
urlpatterns = [
- url(r'^syndication/rss2/$', feeds.TestRss2Feed()),
- url(r'^syndication/rss2/guid_ispermalink_true/$',
+ path('syndication/rss2/', feeds.TestRss2Feed()),
+ path(
+ 'syndication/rss2/guid_ispermalink_true/',
feeds.TestRss2FeedWithGuidIsPermaLinkTrue()),
- url(r'^syndication/rss2/guid_ispermalink_false/$',
+ path(
+ 'syndication/rss2/guid_ispermalink_false/',
feeds.TestRss2FeedWithGuidIsPermaLinkFalse()),
- url(r'^syndication/rss091/$', feeds.TestRss091Feed()),
- url(r'^syndication/no_pubdate/$', feeds.TestNoPubdateFeed()),
- url(r'^syndication/atom/$', feeds.TestAtomFeed()),
- url(r'^syndication/latest/$', feeds.TestLatestFeed()),
- url(r'^syndication/custom/$', feeds.TestCustomFeed()),
- url(r'^syndication/naive-dates/$', feeds.NaiveDatesFeed()),
- url(r'^syndication/aware-dates/$', feeds.TZAwareDatesFeed()),
- url(r'^syndication/feedurl/$', feeds.TestFeedUrlFeed()),
- url(r'^syndication/articles/$', feeds.ArticlesFeed()),
- url(r'^syndication/template/$', feeds.TemplateFeed()),
- url(r'^syndication/template_context/$', feeds.TemplateContextFeed()),
- url(r'^syndication/rss2/single-enclosure/$', feeds.TestSingleEnclosureRSSFeed()),
- url(r'^syndication/rss2/multiple-enclosure/$', feeds.TestMultipleEnclosureRSSFeed()),
- url(r'^syndication/atom/single-enclosure/$', feeds.TestSingleEnclosureAtomFeed()),
- url(r'^syndication/atom/multiple-enclosure/$', feeds.TestMultipleEnclosureAtomFeed()),
+ path('syndication/rss091/', feeds.TestRss091Feed()),
+ path('syndication/no_pubdate/', feeds.TestNoPubdateFeed()),
+ path('syndication/atom/', feeds.TestAtomFeed()),
+ path('syndication/latest/', feeds.TestLatestFeed()),
+ path('syndication/custom/', feeds.TestCustomFeed()),
+ path('syndication/naive-dates/', feeds.NaiveDatesFeed()),
+ path('syndication/aware-dates/', feeds.TZAwareDatesFeed()),
+ path('syndication/feedurl/', feeds.TestFeedUrlFeed()),
+ path('syndication/articles/', feeds.ArticlesFeed()),
+ path('syndication/template/', feeds.TemplateFeed()),
+ path('syndication/template_context/', feeds.TemplateContextFeed()),
+ path('syndication/rss2/single-enclosure/', feeds.TestSingleEnclosureRSSFeed()),
+ path('syndication/rss2/multiple-enclosure/', feeds.TestMultipleEnclosureRSSFeed()),
+ path('syndication/atom/single-enclosure/', feeds.TestSingleEnclosureAtomFeed()),
+ path('syndication/atom/multiple-enclosure/', feeds.TestMultipleEnclosureAtomFeed()),
]