Opened 10 years ago

Closed 10 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

Description

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 by None, 10 years ago

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

comment:2 by Tim Graham, 10 years ago

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