فهرست منبع

Removed unused view and url from shortcuts tests.

The test that used these was removed in 9114fe8adabe626619665c9853ba952798da5530.
Alasdair Nicol 9 سال پیش
والد
کامیت
3380169222
2فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 1
      tests/shortcuts/urls.py
  2. 0 7
      tests/shortcuts/views.py

+ 0 - 1
tests/shortcuts/urls.py

@@ -8,7 +8,6 @@ urlpatterns = [
     url(r'^render_to_response/content_type/$', views.render_to_response_view_with_content_type),
     url(r'^render_to_response/status/$', views.render_to_response_view_with_status),
     url(r'^render_to_response/using/$', views.render_to_response_view_with_using),
-    url(r'^render_to_response/context_instance_misuse/$', views.render_to_response_with_context_instance_misuse),
     url(r'^render/$', views.render_view),
     url(r'^render/multiple_templates/$', views.render_view_with_multiple_templates),
     url(r'^render/content_type/$', views.render_view_with_content_type),

+ 0 - 7
tests/shortcuts/views.py

@@ -1,5 +1,4 @@
 from django.shortcuts import render, render_to_response
-from django.template import RequestContext
 
 
 def render_to_response_view(request):
@@ -42,12 +41,6 @@ def context_processor(request):
     return {'bar': 'context processor output'}
 
 
-def render_to_response_with_context_instance_misuse(request):
-    context_instance = RequestContext(request, {}, processors=[context_processor])
-    # Incorrect -- context_instance should be passed as a keyword argument.
-    return render_to_response('shortcuts/render_test.html', context_instance)
-
-
 def render_view(request):
     return render(request, 'shortcuts/render_test.html', {
         'foo': 'FOO',