Ticket #14675: tests.diff

File tests.diff, 13.7 KB (added by pupeno, 5 years ago)

Explicitly included functions from urls.default in tests.

  • tests/modeltests/test_client/urls.py

    diff --git a/tests/modeltests/test_client/urls.py b/tests/modeltests/test_client/urls.py
    index 9e0eabe..c2e7d15 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22from django.views.generic.simple import redirect_to
    33import views
    44
  • tests/regressiontests/admin_views/urls.py

    diff --git a/tests/regressiontests/admin_views/urls.py b/tests/regressiontests/admin_views/urls.py
    index f3f1fbd..57c157e 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22from django.contrib import admin
    33import views
    44import customadmin
  • tests/regressiontests/admin_widgets/urls.py

    diff --git a/tests/regressiontests/admin_widgets/urls.py b/tests/regressiontests/admin_widgets/urls.py
    index af73d53..2ad23c1 100644
    a b  
    1 
    2 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    32import widgetadmin
    43
    54urlpatterns = patterns('',
  • tests/regressiontests/comment_tests/urls.py

    diff --git a/tests/regressiontests/comment_tests/urls.py b/tests/regressiontests/comment_tests/urls.py
    index 0058689..2a16e05 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22
    33urlpatterns = patterns('regressiontests.comment_tests.custom_comments.views',
    44    url(r'^post/$',          'custom_submit_comment'),
  • tests/regressiontests/comment_tests/urls_admin.py

    diff --git a/tests/regressiontests/comment_tests/urls_admin.py b/tests/regressiontests/comment_tests/urls_admin.py
    index 341285d..7958fc1 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22from django.contrib import admin
    33from django.contrib.comments.admin import CommentsAdmin
    44from django.contrib.comments.models import Comment
  • tests/regressiontests/conditional_processing/urls.py

    diff --git a/tests/regressiontests/conditional_processing/urls.py b/tests/regressiontests/conditional_processing/urls.py
    index 4dbe11a..932f0fe 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22import views
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/context_processors/urls.py

    diff --git a/tests/regressiontests/context_processors/urls.py b/tests/regressiontests/context_processors/urls.py
    index 30728c8..21c0c4c 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22
    33import views
    44
  • tests/regressiontests/file_uploads/urls.py

    diff --git a/tests/regressiontests/file_uploads/urls.py b/tests/regressiontests/file_uploads/urls.py
    index 413080e..1880a3b 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22import views
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/formwizard/urls.py

    diff --git a/tests/regressiontests/formwizard/urls.py b/tests/regressiontests/formwizard/urls.py
    index d964bc6..e4e6e4e 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from forms import ContactWizard, Page1, Page2, Page3
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/generic_inline_admin/urls.py

    diff --git a/tests/regressiontests/generic_inline_admin/urls.py b/tests/regressiontests/generic_inline_admin/urls.py
    index c3e8af8..154e303 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22from django.contrib import admin
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/generic_views/urls.py

    diff --git a/tests/regressiontests/generic_views/urls.py b/tests/regressiontests/generic_views/urls.py
    index 548d10d..5081943 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from django.views.generic import TemplateView
    33
    44import views
  • tests/regressiontests/middleware_exceptions/urls.py

    diff --git a/tests/regressiontests/middleware_exceptions/urls.py b/tests/regressiontests/middleware_exceptions/urls.py
    index 5b477a4..2ace688 100644
    a b  
    11# coding: utf-8
    2 from django.conf.urls.defaults import *
     2from django.conf.urls.defaults import patterns
    33
    44import views
    55
  • tests/regressiontests/special_headers/urls.py

    diff --git a/tests/regressiontests/special_headers/urls.py b/tests/regressiontests/special_headers/urls.py
    index c6b05d6..4644c69 100644
    a b  
    11# coding: utf-8
    2 from django.conf.urls.defaults import *
     2from django.conf.urls.defaults import patterns
    33from django.views.generic.list_detail import object_detail
    44from models import Article
    55import views
  • tests/regressiontests/staticfiles_tests/urls/default.py

    diff --git a/tests/regressiontests/staticfiles_tests/urls/default.py b/tests/regressiontests/staticfiles_tests/urls/default.py
    index 061ec64..502841b 100644
    a b  
    11from django.conf import settings
    2 from django.conf.urls.defaults import *
     2from django.conf.urls.defaults import patterns, url
    33
    44urlpatterns = patterns('',
    55    url(r'^static/(?P<path>.*)$', 'django.contrib.staticfiles.views.serve'),
  • tests/regressiontests/syndication/urls.py

    diff --git a/tests/regressiontests/syndication/urls.py b/tests/regressiontests/syndication/urls.py
    index 881fa48..7704078 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22
    33import feeds
    44
  • tests/regressiontests/templates/urls.py

    diff --git a/tests/regressiontests/templates/urls.py b/tests/regressiontests/templates/urls.py
    index 28d4133..5460f36 100644
    a b  
    11# coding: utf-8
    2 from django.conf.urls.defaults import *
     2from django.conf.urls.defaults import patterns, url
    33from regressiontests.templates import views
    44
    55urlpatterns = patterns('',
  • tests/regressiontests/test_client_regress/urls.py

    diff --git a/tests/regressiontests/test_client_regress/urls.py b/tests/regressiontests/test_client_regress/urls.py
    index 650d80b..325ef91 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from django.views.generic.simple import redirect_to
    33import views
    44
  • tests/regressiontests/urlpatterns_reverse/extra_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/extra_urls.py b/tests/regressiontests/urlpatterns_reverse/extra_urls.py
    index c171f6d..3a56f2d 100644
    a b  
    22Some extra URL patterns that are included at the top level.
    33"""
    44
    5 from django.conf.urls.defaults import *
     5from django.conf.urls.defaults import patterns, url, include
    66from views import empty_view
    77
    88urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/included_named_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/included_named_urls.py b/tests/regressiontests/urlpatterns_reverse/included_named_urls.py
    index b3f7903..aec96c5 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22from views import empty_view
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/included_named_urls2.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/included_named_urls2.py b/tests/regressiontests/urlpatterns_reverse/included_named_urls2.py
    index 96c42c3..65d2178 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patters, url
    22from views import empty_view
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/included_namespace_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/included_namespace_urls.py b/tests/regressiontests/urlpatterns_reverse/included_namespace_urls.py
    index 16887e2..86c48b5 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22from namespace_urls import URLObject
    33from views import view_class_instance
    44
  • tests/regressiontests/urlpatterns_reverse/included_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/included_urls.py b/tests/regressiontests/urlpatterns_reverse/included_urls.py
    index f8acf34..4c5327b 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from views import empty_view
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/included_urls2.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/included_urls2.py b/tests/regressiontests/urlpatterns_reverse/included_urls2.py
    index f414ca6..f130275 100644
    a b each name to resolve and Django must distinguish the possibilities based on the 
    55argument list.
    66"""
    77
    8 from django.conf.urls.defaults import *
     8from django.conf.urls.defaults import patterns, url
    99from views import empty_view
    1010
    1111urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/named_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/named_urls.py b/tests/regressiontests/urlpatterns_reverse/named_urls.py
    index d8a61a1..0ee8c40 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22from views import empty_view
    33
    44urlpatterns = patterns('',
  • tests/regressiontests/urlpatterns_reverse/namespace_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/namespace_urls.py b/tests/regressiontests/urlpatterns_reverse/namespace_urls.py
    index 3d34049..ed32fcc 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22from views import view_class_instance
    33
    44class URLObject(object):
  • tests/regressiontests/urlpatterns_reverse/no_urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/no_urls.py b/tests/regressiontests/urlpatterns_reverse/no_urls.py
    index c9b9efe..a8fcc4c 100644
    a b  
    1 #from django.conf.urls.defaults import *
     1#from django.conf.urls.defaults import patterns, url, include
    22
  • tests/regressiontests/urlpatterns_reverse/urlconf_inner.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/urlconf_inner.py b/tests/regressiontests/urlpatterns_reverse/urlconf_inner.py
    index d188e06..c9f0e7b 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from django.template import Template, Context
    33from django.http import HttpResponse
    44
  • tests/regressiontests/urlpatterns_reverse/urlconf_outer.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/urlconf_outer.py b/tests/regressiontests/urlpatterns_reverse/urlconf_outer.py
    index 506e036..5d19cab 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22
    33import urlconf_inner
    44
  • tests/regressiontests/urlpatterns_reverse/urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/urls.py b/tests/regressiontests/urlpatterns_reverse/urls.py
    index c603c02..ea75db7 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url, include
    22from views import empty_view, absolute_kwargs_view
    33
    44other_patterns = patterns('',
  • tests/regressiontests/utils/urls.py

    diff --git a/tests/regressiontests/utils/urls.py b/tests/regressiontests/utils/urls.py
    index ba09d14..3d4cfe1 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22
    33import views
    44
  • tests/regressiontests/views/urls.py

    diff --git a/tests/regressiontests/views/urls.py b/tests/regressiontests/views/urls.py
    index d1412cd..a1b80c1 100644
    a b  
    11# coding: utf-8
    22from os import path
    33
    4 from django.conf.urls.defaults import *
     4from django.conf.urls.defaults import patterns, url, include
    55
    66from models import *
    77import views
  • tests/urls.py

    diff --git a/tests/urls.py b/tests/urls.py
    index 01d6408..c042b6b 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22
    33urlpatterns = patterns('',
    44    # test_client modeltest urls
Back to Top