From d99d6436f7086bcce582f4ab1f8ca5a33aab280c Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Thu, 22 Feb 2018 12:26:23 +0100 Subject: [PATCH] Use include('django_nyt.urls') in tests --- testproject/testproject/urls.py | 3 +-- tests/core/test_urls.py | 3 +-- tests/testdata/urls.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/testproject/testproject/urls.py b/testproject/testproject/urls.py index 0b1a49d3..026981cd 100644 --- a/testproject/testproject/urls.py +++ b/testproject/testproject/urls.py @@ -3,7 +3,6 @@ from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.http.response import HttpResponse from django.views.static import serve as static_serve -from django_nyt.urls import get_pattern as get_notify_pattern from wiki.compat import include, url from wiki.urls import get_pattern as get_wiki_pattern @@ -22,7 +21,7 @@ if settings.DEBUG: urlpatterns += [ - url(r'^notify/', get_notify_pattern()), + url(r'^notify/', include('django_nyt.urls')), url(r'', get_wiki_pattern()) ] diff --git a/tests/core/test_urls.py b/tests/core/test_urls.py index 662294d4..678feffd 100644 --- a/tests/core/test_urls.py +++ b/tests/core/test_urls.py @@ -1,7 +1,6 @@ from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.test.testcases import TestCase -from django_nyt.urls import get_pattern as get_notify_pattern from wiki.compat import include, url from wiki.models import Article, URLPath from wiki.urls import WikiURLPatterns, get_pattern as get_wiki_pattern @@ -32,7 +31,7 @@ class WikiCustomUrlPatterns(WikiURLPatterns): urlpatterns = [ - url(r'^notify/', get_notify_pattern()), + url(r'^notify/', include('django_nyt.urls')), url(r'', get_wiki_pattern(url_config_class=WikiCustomUrlPatterns)) ] diff --git a/tests/testdata/urls.py b/tests/testdata/urls.py index a9fbc6c4..fac8d787 100644 --- a/tests/testdata/urls.py +++ b/tests/testdata/urls.py @@ -1,7 +1,6 @@ from django.conf import settings from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns -from django_nyt.urls import get_pattern as get_notify_pattern from wiki.compat import include, url from wiki.urls import get_pattern as get_wiki_pattern @@ -23,6 +22,6 @@ if settings.DEBUG: urlpatterns += [ url(r'^django_functest/', include('django_functest.urls')), - url(r'^notify/', get_notify_pattern()), + url(r'^notify/', include('django_nyt.urls')), url(r'', get_wiki_pattern()) ] -- 2.45.2