mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #29966 -- Added tests for BaseHandler's "The view didn't return an HttpResponse object" error.
This commit is contained in:
parent
fc71bb11b1
commit
11a9017179
3 changed files with 22 additions and 0 deletions
|
@ -10,6 +10,15 @@ def regular(request):
|
|||
return HttpResponse(b"regular content")
|
||||
|
||||
|
||||
def no_response(request):
|
||||
pass
|
||||
|
||||
|
||||
class NoResponse:
|
||||
def __call__(self, request):
|
||||
pass
|
||||
|
||||
|
||||
def streaming(request):
|
||||
return StreamingHttpResponse([b"streaming", b" ", b"content"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue