summaryrefslogtreecommitdiff
path: root/tests/comment_tests/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/comment_tests/urls.py')
-rw-r--r--tests/comment_tests/urls.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/comment_tests/urls.py b/tests/comment_tests/urls.py
new file mode 100644
index 0000000000..0a7e8b5fdf
--- /dev/null
+++ b/tests/comment_tests/urls.py
@@ -0,0 +1,23 @@
+from __future__ import absolute_import
+
+from django.conf.urls import patterns, url
+from django.contrib.comments.feeds import LatestCommentFeed
+
+from .custom_comments import views
+
+
+feeds = {
+ 'comments': LatestCommentFeed,
+}
+
+urlpatterns = patterns('',
+ url(r'^post/$', views.custom_submit_comment),
+ url(r'^flag/(\d+)/$', views.custom_flag_comment),
+ url(r'^delete/(\d+)/$', views.custom_delete_comment),
+ url(r'^approve/(\d+)/$', views.custom_approve_comment),
+ url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
+)
+
+urlpatterns += patterns('',
+ (r'^rss/comments/$', LatestCommentFeed()),
+)