Opened 4 years ago

Closed 4 years ago

#23361 closed Uncategorized (worksforme)

django.test.Client and response data

Reported by: None Owned by: nobody
Component: Testing framework Version: 1.7-rc-2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If make request with django.test.Client and response is HttpResponse (not TemplateResponse) then it not has context data and templates list.
It is a bug?

Change History (2)

comment:1 Changed 4 years ago by None

It work in TestCase and does not work in django shell.

comment:2 Changed 4 years ago by Tim Graham

Resolution: worksforme
Status: newclosed

I'd guess you haven't called setup_test_environment(). Please reopen if that's not the case.

Note: See TracTickets for help on using tickets.
Back to Top