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 , 10 years ago
comment:2 by , 10 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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.
It work in TestCase and does not work in django shell.