summaryrefslogtreecommitdiff
path: root/tests/test_client_regress
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/test_client_regress
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
downloaddjango-043bd709425149b8eff3fb821cba5c23aaebd0df.tar.gz
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/test_client_regress')
-rw-r--r--tests/test_client_regress/urls.py70
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/test_client_regress/urls.py b/tests/test_client_regress/urls.py
index eeec49b8ce..18c037bc23 100644
--- a/tests/test_client_regress/urls.py
+++ b/tests/test_client_regress/urls.py
@@ -1,42 +1,42 @@
-from django.conf.urls import include, url
+from django.urls import include, path
from django.views.generic import RedirectView
from . import views
urlpatterns = [
- url(r'', include('test_client.urls')),
+ path('', include('test_client.urls')),
- url(r'^no_template_view/$', views.no_template_view),
- url(r'^staff_only/$', views.staff_only_view),
- url(r'^get_view/$', views.get_view),
- url(r'^request_data/$', views.request_data),
- url(r'^request_data_extended/$', views.request_data, {'template': 'extended.html', 'data': 'bacon'}),
- url(r'^arg_view/(?P<name>.+)/$', views.view_with_argument, name='arg_view'),
- url(r'^nested_view/$', views.nested_view, name='nested_view'),
- url(r'^login_protected_redirect_view/$', views.login_protected_redirect_view),
- url(r'^redirects/$', RedirectView.as_view(url='/redirects/further/')),
- url(r'^redirects/further/$', RedirectView.as_view(url='/redirects/further/more/')),
- url(r'^redirects/further/more/$', RedirectView.as_view(url='/no_template_view/')),
- url(r'^redirect_to_non_existent_view/$', RedirectView.as_view(url='/non_existent_view/')),
- url(r'^redirect_to_non_existent_view2/$', RedirectView.as_view(url='/redirect_to_non_existent_view/')),
- url(r'^redirect_to_self/$', RedirectView.as_view(url='/redirect_to_self/')),
- url(r'^redirect_to_self_with_changing_query_view/$', views.redirect_to_self_with_changing_query_view),
- url(r'^circular_redirect_1/$', RedirectView.as_view(url='/circular_redirect_2/')),
- url(r'^circular_redirect_2/$', RedirectView.as_view(url='/circular_redirect_3/')),
- url(r'^circular_redirect_3/$', RedirectView.as_view(url='/circular_redirect_1/')),
- url(r'^redirect_other_host/$', RedirectView.as_view(url='https://otherserver:8443/no_template_view/')),
- url(r'^set_session/$', views.set_session_view),
- url(r'^check_session/$', views.check_session_view),
- url(r'^request_methods/$', views.request_methods_view),
- url(r'^check_unicode/$', views.return_unicode),
- url(r'^check_binary/$', views.return_undecodable_binary),
- url(r'^json_response/$', views.return_json_response),
- url(r'^parse_encoded_text/$', views.return_text_file),
- url(r'^check_headers/$', views.check_headers),
- url(r'^check_headers_redirect/$', RedirectView.as_view(url='/check_headers/')),
- url(r'^body/$', views.body),
- url(r'^read_all/$', views.read_all),
- url(r'^read_buffer/$', views.read_buffer),
- url(r'^request_context_view/$', views.request_context_view),
- url(r'^render_template_multiple_times/$', views.render_template_multiple_times),
+ path('no_template_view/', views.no_template_view),
+ path('staff_only/', views.staff_only_view),
+ path('get_view/', views.get_view),
+ path('request_data/', views.request_data),
+ path('request_data_extended/', views.request_data, {'template': 'extended.html', 'data': 'bacon'}),
+ path('arg_view/<name>/', views.view_with_argument, name='arg_view'),
+ path('nested_view/', views.nested_view, name='nested_view'),
+ path('login_protected_redirect_view/', views.login_protected_redirect_view),
+ path('redirects/', RedirectView.as_view(url='/redirects/further/')),
+ path('redirects/further/', RedirectView.as_view(url='/redirects/further/more/')),
+ path('redirects/further/more/', RedirectView.as_view(url='/no_template_view/')),
+ path('redirect_to_non_existent_view/', RedirectView.as_view(url='/non_existent_view/')),
+ path('redirect_to_non_existent_view2/', RedirectView.as_view(url='/redirect_to_non_existent_view/')),
+ path('redirect_to_self/', RedirectView.as_view(url='/redirect_to_self/')),
+ path('redirect_to_self_with_changing_query_view/', views.redirect_to_self_with_changing_query_view),
+ path('circular_redirect_1/', RedirectView.as_view(url='/circular_redirect_2/')),
+ path('circular_redirect_2/', RedirectView.as_view(url='/circular_redirect_3/')),
+ path('circular_redirect_3/', RedirectView.as_view(url='/circular_redirect_1/')),
+ path('redirect_other_host/', RedirectView.as_view(url='https://otherserver:8443/no_template_view/')),
+ path('set_session/', views.set_session_view),
+ path('check_session/', views.check_session_view),
+ path('request_methods/', views.request_methods_view),
+ path('check_unicode/', views.return_unicode),
+ path('check_binary/', views.return_undecodable_binary),
+ path('json_response/', views.return_json_response),
+ path('parse_encoded_text/', views.return_text_file),
+ path('check_headers/', views.check_headers),
+ path('check_headers_redirect/', RedirectView.as_view(url='/check_headers/')),
+ path('body/', views.body),
+ path('read_all/', views.read_all),
+ path('read_buffer/', views.read_buffer),
+ path('request_context_view/', views.request_context_view),
+ path('render_template_multiple_times/', views.render_template_multiple_times),
]